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.
[Request] New option, that returns the video urls in an array format #2295
Comments
|
There already is an API server project (by one of our core developers): https://github.com/jaimeMF/youtube-dl-api-server . It looks like that does almost exactly what you want. |
|
many thanks. |
Hi?
Thanks for the code. I love it much.
I'm writing this post to request you a new option. I want to make a REST API service that syndicates various video sites, so that an mobile app or browser app can request the list of video urls and users can choose one. Or, in case of mobile, depending on the network context, the intelligence in the mobile app make a selection of video quality automatically. (Network intelligence is one of main jobs that my company is doing. The REST API is nice-to-have for the Demo of our solution.)
I have tried in Java and php, but was not able to follow the speed of youtube signature/policy change. Too much effort. In that sense, youtube-dl is the best in terms of video service coverage and its robustness.
Not only I am not an expert at Python code, but I don't want to modify any of youtube-dl itself, because it keeps growing/being maintained in the public domain. What I just want to do, for this plan to be working, is a wrapper or inherited module that takes full advantage of youtube-dl.
As I stated at the title of this post, can you add an option that stdout a list of urls in array format, like json with content-type header (e.g. Content-type: application/json; charset=utf-8\n). More preferrably, web front-end interface or so called api endpoint also, that receives REST API call (something like http://path/api/index.py?url=http..youtube..xhkUEks&format=json)?
I know it's too much :). Please let me know if there already is such option, but I was not realized. Answer like 'do it yourself after studying python', well it's also ok. Any feedback, I'm looking forward to.
Juwon.