Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ixigua] An extractor error has occurred. (caused by KeyError('video')) xigua #6932

Open
10 tasks done
xyx361100238 opened this issue Apr 28, 2023 · 1 comment
Open
10 tasks done
Labels
geo-blocked Content is geo-blocked site-bug Issue with a specific website triage Untriaged issue

Comments

@xyx361100238
Copy link

DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE

  • I understand that I will be blocked if I intentionally remove or skip any mandatory* field

Checklist

  • I'm reporting a bug unrelated to a specific site
  • I've verified that I'm running yt-dlp version 2023.03.04 (update instructions) or later (specify commit)
  • I've checked that all provided URLs are playable in a browser with the same IP and same login details
  • I've checked that all URLs and arguments with special characters are properly quoted or escaped
  • I've searched known issues and the bugtracker for similar issues including closed ones. DO NOT post duplicates
  • I've read the guidelines for opening an issue

Provide a description that is worded well enough to be understood

use cmd download from www.ixigua.com:
yt-dlp --cookies www.ixigua.com_cookies.txt --write-info-json https://www.ixigua.com/7135620777889825310?logTag=307c40f20704ec03ab29
got error:

[Ixigua] Extracting URL: https://www.ixigua.com/7135620777889825310?logTag=307c40f20704ec03ab29
[Ixigua] 7135620777889825310: Downloading webpage
ERROR: [Ixigua] 7135620777889825310: Failed to get SSR_HYDRATED_DATA; please report this issue on https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using yt-dlp -U

Provide verbose output that clearly demonstrates the problem

  • Run your yt-dlp command with -vU flag added (yt-dlp -vU <your command line>)
  • If using API, add 'verbose': True to YoutubeDL params instead
  • Copy the WHOLE output (starting with [debug] Command-line config) and insert it below

Complete Verbose Output

[debug] Command-line config: ['-vU', '--cookies', 'www.ixigua.com_cookies.txt', '--write-info-json', 'https://www.ixigua.com/7135620777889825310?logTag=307c40f20704ec03ab29']
[debug] Encodings: locale UTF-8, fs utf-8, pref UTF-8, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version [email protected] [392389b7d] (pip)
[debug] Python 3.8.16 (CPython x86_64 64bit) - Linux-4.15.0-197-generic-x86_64-with-glibc2.17 (OpenSSL 1.1.1t  7 Feb 2023, glibc 2.31)
[debug] exe versions: ffmpeg 4.2.7, ffprobe 4.2.7
[debug] Optional libraries: Cryptodome-3.17, brotli-1.0.9, certifi-2021.10.08, mutagen-1.46.0, sqlite3-2.6.0, websockets-11.0.2
[debug] Proxy map: {}
[debug] Loaded 1786 extractors
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp/releases/latest
Available version: [email protected], Current version: [email protected]
yt-dlp is up to date ([email protected])
[Ixigua] Extracting URL: https://www.ixigua.com/7135620777889825310?logTag=307c40f20704ec03ab29
[Ixigua] 7135620777889825310: Downloading webpage
ERROR: 7135620777889825310: An extractor error has occurred. (caused by KeyError('video')); please report this issue on  https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using  yt-dlp -U
  File "/home/youxixie/anaconda3/envs/videoEnv/lib/python3.8/site-packages/yt_dlp/extractor/common.py", line 694, in extract
    ie_result = self._real_extract(url)
  File "/home/youxixie/anaconda3/envs/videoEnv/lib/python3.8/site-packages/yt_dlp/extractor/ixigua.py", line 67, in _real_extract
    json_data = self._get_json_data(webpage, video_id)['anyVideo']['gidInformation']['packerData']['video']
KeyError: 'video'
@xyx361100238 xyx361100238 added bug Bug that is not site-specific triage Untriaged issue labels Apr 28, 2023
@bashonly bashonly added site-bug Issue with a specific website geo-blocked Content is geo-blocked and removed bug Bug that is not site-specific labels Apr 28, 2023
@bashonly bashonly mentioned this issue Jun 23, 2023
11 tasks
@bashonly
Copy link
Member

The workaround (solution?) from #5374 may also apply here:

Navigate to the page in your web browser, let the video load, and then pass cookies to yt-dlp with
--cookies-from-browser chrome (or whatever browser you use)

@bashonly bashonly changed the title cann't download video from www.ixigua.com [ixigua] An extractor error has occurred. (caused by KeyError('video')) xigua Jun 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
geo-blocked Content is geo-blocked site-bug Issue with a specific website triage Untriaged issue
Projects
None yet
Development

No branches or pull requests

2 participants