Skip to content

Instantly share code, notes, and snippets.

@serdary
serdary / das_download.rb
Last active December 11, 2015 00:59 — forked from kalbasit/das_download.rb
Edited to download ios screencast file too. - Downloads all DAS screencasts, forked from eMxyzptlk
#! /usr/bin/env ruby
# usage:
# $ das_download.rb email password [download_directory]
require 'mechanize'
# gem 'mechanize-progressbar'
email = ARGV[0] or raise('Please provide the email address for your account')
password = ARGV[1] or raise('Please provide the password for your account')
path = (ARGV[2] || './').gsub /\//,''