Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Youtube URLs -J return 403 sometimes #18987
Comments
|
If downloading via youtube-dl itself does not result in 403 then you are most likely not passing headers/cookies correctly. |
|
@dstftw by chance do you have a example of a get request sent with headers? My current request header sends the cookie and headers like so
|
|
See |
Please follow the guide below
xinto all the boxes [ ] relevant to your issue (like this:[x])Make sure you are using the latest version: run
youtube-dl --versionand ensure your version is 2019.01.24. If it's not, read this FAQ entry and update. Issues with outdated version will be rejected.Before submitting an issue make sure you have:
What is the purpose of your issue?
I'm currently using youtube-dl to get the URL of the video, via this command.
youtube-dl -f bestaudio --no-cache-dir --geo-bypass --restrict-filenames -J --cookies cookies.txt youtubeURLFrom there I am taking that URL, on the same server, and using ffmpeg's -i, with the -headers by sending the cookie and the headers, but I still get a decent amount of 403 errores.
Is there a reason this would happen? Given that it is on the same IP as the initial scrape? Should I use -g instead?