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

Downloading 1 format(s): 1-2 ERROR: unable to download video data: HTTP Error 403: Forbidden #9484

Closed
7 of 9 tasks
seaklin83546 opened this issue Mar 18, 2024 · 13 comments
Closed
7 of 9 tasks
Labels
duplicate This issue or pull request already exists site-bug Issue with a specific website

Comments

@seaklin83546
Copy link

seaklin83546 commented Mar 18, 2024

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

Please make sure the question is worded well enough to be understood

yt-dlp -f "bv*[vcodec^=avc]+ba[ext=m4a]/b[ext=mp4]/b" --cookies-from-browser chrome https://www.ixigua.com/7318279065864634918
[Ixigua] Extracting URL: https://www.ixigua.com/7318279065864634918
[Ixigua] 731827906586463491: Downloading webpage
Extracting cookies from chrome
[Cookies] Loading cookie 0/ 3557WARNING: failed to decrypt cookie (AES-GCM) because the MAC check failed. Possibly the key is wrong?
Extracted 2819 cookies from chrome (398 could not be decrypted)
[info] 731827906586463491: Downloading 1 format(s): 1-2
ERROR: unable to download video data: HTTP Error 403: Forbidden

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

No response

@seaklin83546 seaklin83546 added the question Question label Mar 18, 2024
@seaklin83546 seaklin83546 changed the title Can't Downloading webpage ERROR: [Ixigua] 731827906586463491: Failed to get SSR_HYDRATED_DATA Downloading 1 format(s): 1-2 ERROR: unable to download video data: HTTP Error 403: Forbidden Mar 18, 2024
@JinhuaSu
Copy link

the same for ixigua, with --cookies with netscape cookie jar copy from chrome.

i also get another bug info when use document.cookie in the F12 console.
ERROR: [Ixigua] 7340528552859271718: Failed to get SSR_HYDRATED_DATA;

@seaklin83546
Copy link
Author

the same for ixigua, with --cookies with netscape cookie jar copy from chrome.

i also get another bug info when use document.cookie in the F12 console. ERROR: [Ixigua] 7340528552859271718: Failed to get SSR_HYDRATED_DATA;

Now you can fix this bug?

@JinhuaSu
Copy link

I fork this project and try to debug it. I find it can extract the piece mp4 url (like this) and the server seems add a more strict check for request, so the downloading of video is denied by the server. I try to figure out, and i will share my solution if it works.

@JinhuaSu
Copy link

It is solved by request that media piece url with correct header Referer=https://www.ixigua.com/

@JinhuaSu
Copy link

the same for ixigua, with --cookies with netscape cookie jar copy from chrome.
i also get another bug info when use document.cookie in the F12 console. ERROR: [Ixigua] 7340528552859271718: Failed to get SSR_HYDRATED_DATA;

Now you can fix this bug?

Fix now

@JinhuaSu
Copy link

the solution is add --referer https://www.ixigua.com/
python yt_dlp/main.py --cookies ../auto_video_sync/cookies3.txt --referer https://www.ixigua.com/
https://www.ixigua.com/7340528552859271718?logTag=d94a6a1b0ee57ae038e6

@seaklin83546
Copy link
Author

the solution is add --referer https://www.ixigua.com/ python yt_dlp/main.py --cookies ../auto_video_sync/cookies3.txt --referer https://www.ixigua.com/ https://www.ixigua.com/7340528552859271718?logTag=d94a6a1b0ee57ae038e6

Thank you very much. Now it worked

@JinhuaSu
Copy link

the solution is add --referer https://www.ixigua.com/ python yt_dlp/main.py --cookies ../auto_video_sync/cookies3.txt --referer https://www.ixigua.com/ https://www.ixigua.com/7340528552859271718?logTag=d94a6a1b0ee57ae038e6

Thank you very much. Now it worked

I am still working on crawling video of Douyin and Kuaishou. If you have some solution with yt-dlp or other tools, you may get paid for sharing.

@seaklin83546
Copy link
Author

the solution is add --referer https://www.ixigua.com/ python yt_dlp/main.py --cookies ../auto_video_sync/cookies3.txt --referer https://www.ixigua.com/ https://www.ixigua.com/7340528552859271718?logTag=d94a6a1b0ee57ae038e6

Thank you very much. Now it worked

I am still working on crawling video of Douyin and Kuaishou. If you have some solution with yt-dlp or other tools, you may get paid for sharing.

i need to download from KuaiShou. Can you help me?

@JinhuaSu
Copy link

still working on it.

@pukkandan
Copy link
Member

pukkandan commented Mar 18, 2024

This is not a forum for general discussion

@pukkandan pukkandan closed this as not planned Won't fix, can't repro, duplicate, stale Mar 18, 2024
@bashonly
Copy link
Member

also #5374

@bashonly bashonly added duplicate This issue or pull request already exists site-bug Issue with a specific website and removed question Question labels Mar 18, 2024
@seaklin83546
Copy link
Author

still working on it.

But yt-dlp not support Kuaishou!

@yt-dlp yt-dlp locked as off-topic and limited conversation to collaborators Mar 23, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
duplicate This issue or pull request already exists site-bug Issue with a specific website
Projects
None yet
Development

No branches or pull requests

4 participants