Skip to content
fetch deviantart's images using mechanize
Ruby
Find file
Latest commit 436e4df Oct 8, 2015 @xofred Merge pull request #10 from Daiyousei/Add_All_Album
Adding "All" album compatibility + Adding the author in the file name
Failed to load latest commit information.
.gitignore
Gemfile
Gemfile.lock
README.md
with_login.rb

README.md

Before use

Mechanize and netrc are needed:

sudo gem install mechanize netrc

Mechanize, as well as the rest of your Ruby gems, can be kept up to date using the command:

sudo gem update

On the intital run, we need to add your login credential to your users ~/.netrc file, so we don't leave your username and password in the process ID, which could be seen by other users on the system (note: the initial run of this script will show up in your bash history).

ruby with_login.rb jack_bauer@ctu.com kim http://azoexevan.deviantart.com/gallery/

An entry in ~/.netrc is created for you. You can then use '-n' and it will poll the netrc file for your login credentials.

ruby with_login.rb -n http://azoexevan.deviantart.com/gallery/

Something went wrong with that request. Please try again.