Youtube video download URL

Viewed 95485

I wrote a program that gets youtube video URL and downloads it
Up today I did this:
1. get video "token" from "/get_video_info?video_id=ID" like:

http://www.youtube.com/get_video_info?video_id=jN0nWjvzeNc  

2. Download Video by requesting it from "/get_video?video_id=ID&t=TOKEN&fmt=FORMAT_ID" like:

http://www.youtube.com/get_video?video_id=jN0nWjvzeNc&t=vjVQa1PpcFMgAK0HB1VRbinpVOwm29eGugPh3fBi6Dg%3D&fmt=18  

But this doesn't work anymore!
What is the new download URL?

Thanks

5 Answers

After a lot of failed tries, this github repositories help me:

https://github.com/rg3/youtube-dl

Get the url only like:

youtube-dl 'https://www.youtube.com/watch?v=bo_efYhYU2A' --get-url

download an mp4 and save as a.mp4 like:

youtube-dl 'https://www.youtube.com/watch?v=bo_efYhYU2A' -f mp4 -o a.mp4

Good luck.

Related