Periodically downloads images from free photography resource site unsplash.com.
- Ruby 2.0+
- Tested with rbenv running Ruby 2.1.0 and Mavericks system Ruby (2.0.0p247)
- RubyGems
- Bundler
- Run
gem install bundlerto install
- Run
- Open Terminal.app
- Clone this repository:
git clone https://github.com/istvanp/unsplash-rb.git ~/.unsplash cd ~/.unsplashbundle --standaloneopen unsplash.rband adjust the following to your liking:MAX_IMAGESHow many images to try to retrieve. Make this a large number to initially retrieve all images. Reduce it to about 50 afterwards.SAVE_PATH: Where to save the images. Defaults to "Unsplash" inside your Pictures directory.
Run ~/.unsplash/unsplash.rb in the terminal.
To run this script every seven days do the following:
cd ~/.unsplashln -sfv "$(pwd)" /usr/local/optln -sfv "$(pwd)/co.istvan.unsplash.plist" ~/Library/LaunchAgentslaunchctl load ~/Library/LaunchAgents/co.istvan.unsplash.plist
Created by Istvan Pusztai. Inspired by mcdado/unsplash-dl.