meadhikari
meadhikari

Reputation: 1039

YouTube download link generator in Python

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?

Upvotes: 5

Views: 3413

Answers (1)

phihag
phihag

Reputation: 287835

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.

Upvotes: 5

Related Questions