Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

YouTube download link generator in Python

Tags:

python

youtube

How to convert something like

http://www.youtube.com/watch?v=ZYffV7qhvTc

into something like http://something.flv [the downloadable file of corresponding video]

in Python?

like image 513
meadhikari Avatar asked Jun 01 '11 16:06

meadhikari


1 Answers

youtube-dl. On the command line:

youtube-dl -g http://www.youtube.com/watch?v=ZYffV7qhvTc

If you want it in pure Python, have a look at the source code and call download with the appropriate setup.

like image 116
phihag Avatar answered Sep 24 '22 23:09

phihag