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.
HTTP 403 error while downloading via web service #7639
Comments
|
That's expected: URLs are only guaranted to work on the same network and with the same cookies and headers, since we replicate what browsers do and that's how it works. About setting the source_address option: your computer must be able to connect with that address (you can't use an arbitrary IP). |
I am trying to use youtube_dl python module, and able to get it working on local machine. I am outputting
formatskey of JSON data obtained. This helps me to get download urls for various resolutions. However, I uploaded the same code on python enabled servers(Heroku as well as DigitalOcean), which again provided the expected output. However, whenever I try to use url that of servers ones, I get an 403 http errors while the same url on localhost for same resolutions are working fine and downloadable.I think this might be the issue of sender's address, Hence tried to pass config param as:
which resulted in following error:
I am trying to download http://youtube.com/watch?v=e72tG80LmsU