In light of Viddler's announcement to close personal accounts, I put together this script to download all of your videos, along with simple metadata about each video. It's not pretty, but it'll do the trick.
- Make sure you have Ruby and Bundler installed
- Download or clone this repo
- Run
bundle install
in this directory - Modify the
api_key
,username
, andpassword
variables in thedownload.rb
file as appropriate for your Viddler account. - Run
ruby download.rb
All of the videos will be downloaded to the videos/
directory, and each video will be in its own folder. In each folder, you'll find all of the files that could be downloaded and a details.json
file, which contains the result of the viddler.videos.getDetails
API call. Any video file that can't be downloaded will be skipped, and an error message will be printed.
NOTE: If the download permission of a video file is set to anything other that "public", it will be temporarily switched to "public" so the files can be downloaded. After downloading, it will be switched back to its previous value. There might be a better way to deal with private videos, but I couldn't find it.