Introducing py-videodownloader
py-videodownloader is a python script which allows for the downloading of videos from the major online providers of streaming video. Currently it supports only YouTube and Vimeo but is modularized so adding other services is fairly simple. It is based off of the py-youtube-downloader script written by chexov.
To use, run the script with a target provider and the video ID you wish to download:
$ ./video-downloader.py -p Vimeo 5720832
$ ./video-downloader.py -p YouTube tgbNymZ7vqY
The above two commands will download one video from both Vimeo and YouTube. Since both videos are available in HD we can pass the respective arguments to download the Vimeo video in 720 and the YouTube video in 1080p:
$ ./video-downloader.py -p Vimeo -f hd 5720832
$ ./video-downloader.py -p YouTube -f 37 tgbNymZ7vqY
You may optionally pass an output directory with the -d or --directory argument. For a list of formats for a specified provider run the command without any video IDs:
$ ./video-downloader.py -p YouTube
video-downloader-1.1.0 - by Jake Wharton <jakewharton@gmail.com>
Format Description
---------- ----------------------------------------
13 176x144 3GP/AMR Mono 3GP
17 176x144 3GP/AAC Mono 3GP
22 1280x720 H.264/AAC Stereo MP4
18 480x360/480x270 H.264/AAC Stereo MP4
37 1920x1080 H.264/AAC Stereo MP4
35 640x480/640x360 H.264/AAC Stereo FLV
34 320x240 H.264/AAC Stereo FLV
5 320x240 H.263/MP3 Mono FLV
6 320x240 H.263/MP3 Mono FLV
The source code for the script as well as download links are available via the GitHub project page.
