tumblr_v2.rb � v+iU �^�)iU #!/usr/bin/env ruby # coding: utf-8 require 'rubygems' require 'open-uri' require 'json' require 'thor' class Tumblr < Thor desc "get_photos [BASE_HOSTNAME] [API_KEY]", "Download all photos by selected base-hostname (api-key required)" def get_photos(base_hostname, api_key) #create folder (adhoc support custom-domain, recently) folder_name = base_hostname.gsub(/\./, "")