Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Program to download YouTube video as flv file
branch: master

This branch is 2 commits ahead of krishnasun82:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.


Python project to download YouTube video from command line

Author: Sundar Srinivasan, Twitter: @krishnasun

Usage: python "<link-to-youtube-video-page>"

License under: Apache License, Version: 2.0

The reason for giving the link in double-quotes is that sometimes the link contain '&'(ampersand), which the UNIX interprets as "run the program in background"

Sundar Srinivasan's version doesn't work when I tested on 8 august 2011.

There is no fmt_url_map string in `content` and urllib2.unqote() doesn't decode percent encoded url (I dunno why)
But there is fmt_stream_map string in `content` and I added urllib2.url2pathname() to decode url

Something went wrong with that request. Please try again.