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.
Generating YouTube download URLs on a web server #13474
Comments
|
Also worth mentioning that I've read the "I extracted a video URL with -g, but it does not play on another machine / in my web browser" section of the README, and it seems like the answer to my question is in that section. I'm just hoping I can get a little more guidance. (Will keep hacking away though.) |
|
#9001 (comment) may help. |
Please follow the guide below
xinto all the boxes [ ] relevant to your issue (like that [x])Make sure you are using the latest version: run
youtube-dl --versionand ensure your version is 2017.06.23. 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?
Hi,
I'm building a simple web app so I'm able to download YouTube videos via an RSS feed, and I'm hoping to achieve this by using
youtube-dlon a web server to generate download URLs and then save them in a database. Then, ideally, I can download the videos via the RSS feed, directly from YouTube's servers, without first downloading them to the web server.This seemed to be working well enough, but it seems like some download URLs just don't work, and I'm not sure what makes them different from the URLs that do work.
For example, when the server grabs the download location of this video: https://www.youtube.com/watch?v=PHWqKcqfn9c ... it produces the following URL:
But when I visit this URL, I receive a "403 Forbidden" error.
When the server grabs the download location of this video though: https://www.youtube.com/watch?v=FfGKNJ4mldE ... it produces the following URL:
And it works perfectly fine.
On the server, this is the specific command that's being run every time:
It's worth noting that all of the URLs work when they're generated on my local machine.
If all of the URLs were broken, I'd assume that it's just not possible to do what I want to do, but the fact that most of them work gives me hope that it's a solvable problem.
Any help would be appreciated.
:)