0.0
No commit activity in last 3 years
No release in over 3 years
A tool for scraping National Geographic's Photo of the Day
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.2.8
~> 2.14.1

Runtime

>= 1.4.2
pow
>= 0.2.3
>= 2.13.1
>= 0.8.2
 Project Readme

README

Download the photo of the day from the National Geographic website and save it as a desktop wallpaper.

Installation

gem install ngpod_scraper

Requirements

  • nokogiri
  • pow
  • rmagick
  • valuable

Usage

ngpod_scaper path/to/config.yml

Sample config.yml

url: http://photography.nationalgeographic.com/photography/photo-of-the-day
show_logs: true
photo:
  path_format:                '/home/gsmendoza/Pictures/national-geographic/#{year}-#{month}/#{name}'
  wallpaper_path_format:      '/home/gsmendoza/Pictures/national-geographic/photo-of-the-day.jpg'
  wallpaper_width:            1280
  wallpaper_height:           800
  wallpaper_background_color: black

path_format and wallpaper_path_format are evaluated as strings. For convenience, the following values are provided:

  • time, year, month, day, hour - based on Time.now
  • name - the filename of the photo

Displaying the photos as your screensaver

In Ubuntu, you'll need to do this.