Skip to content

istvanp/unsplash-rb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Unsplash.com Downloader

Periodically downloads images from free photography resource site unsplash.com.

Requirements

  • Ruby 2.0+
    • Tested with rbenv running Ruby 2.1.0 and Mavericks system Ruby (2.0.0p247)
  • RubyGems
  • Bundler
    • Run gem install bundler to install

Setup

  1. Open Terminal.app
  2. Clone this repository:
    git clone https://github.com/istvanp/unsplash-rb.git ~/.unsplash
  3. cd ~/.unsplash
  4. bundle --standalone
  5. open unsplash.rb and adjust the following to your liking:
    • MAX_IMAGES How 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.

Usage

Run ~/.unsplash/unsplash.rb in the terminal.

Run Periodically (Mac OS X)

To run this script every seven days do the following:

  1. cd ~/.unsplash
  2. ln -sfv "$(pwd)" /usr/local/opt
  3. ln -sfv "$(pwd)/co.istvan.unsplash.plist" ~/Library/LaunchAgents
  4. launchctl load ~/Library/LaunchAgents/co.istvan.unsplash.plist

Credits

Created by Istvan Pusztai. Inspired by mcdado/unsplash-dl.

About

Periodically downloads images from free photography resource site

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages