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.
URL's generated with youtube-dl resulting in 403 error? #2287
Comments
|
Do all urls fail, or only some? are you requesting dash formats or the normal formats? . Could you post how you are calling youtube-dl and curl? #!/bin/sh
URL="BaW_jenozKc"
URL="UxxajLWwzqY"
VID=$(youtube-dl -g $URL)
#curl -o final.mp4 "$VID"
wget -O final.mp4 "$VID" |
|
This is the complete PHP test script which extracts the DASH stream URL's and prints them on browser which I copy paste in terminal to test what is failing:
The above outputs this:
Which results in the below 403 on terminal -
|
|
You must use youtube-dl and wget on the same machine... otherwise it won't work. |
|
@pulpe They are on the same machine and the script was working fine but stopped working suddenly. After hours of testing I finally found the problem and the solution which worked was to clear the @jaimeMF I am not sure what caused the issue but clearing the cache fixed the problem. |
|
Hi I am having the same problem. Did you end up getting a fix? |
|
After hours of testing I finally found the problem and the solution which worked was to clear the youtube-dl cache folder. |
|
my testing shows using axel as external downloader gives that 403 error while using aria2c works OK! |
|
axel is broken with YouTube, see #10429 (comment) |
My php script to merge 1080p was working fine until today and used
wgetto download url's generated by youtube-dl and merged them (asyoutube-dldoes not delete source files after merge) , today this functionality is broken and bothwgetandcurlfails to download the streams with403 Forbiddenerror from Youtube.Strangely,
YTDLis able to download the files. I tried changinguser-agentin curl as below but it still results in 403.I would also like to request that
youtube-dldeletes dash files after conversion (#1612 (comment)) which will specifically come handy in situations and usage scenario (scripted downloading on mass level) like this.