Skip to content

A script to download photo of the day pictures from National Geographic

Notifications You must be signed in to change notification settings

metalelf0/NationalGeographicDownloader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

National Geographic Downloader

National Geographic photo of the day is so cool, so why cant we setup a script to download them all? I really enjoy having them as wallpapers, and I used to save them all navigating the site, so I decided to speedup the process!

Note that this download actually browses the site using Nokogiri, so it's not too much faster than the fastest user, it should comply to the TOS of NationalGeographic.

Here's a small ruby script to do what you need.

Requirements:

  • ruby, rubygems
  • nokogiri
  • thor
  • wget

Usage

	$> ./download.rb [-n 10] [-s starting_url] [-r resume]
  • -n: number of pictures to download
  • -s: starting url if you want to manually resume downloading (should be something like http://photography.nationalgeographic.com/photography/photo-of-the-day/some-picture)
  • -r: resume from the last downloaded picture. Every time you download pictures, a file named .last_download is created in the current dir, and this is used to retrieve the last downloaded picture if you want to resume.

About

A script to download photo of the day pictures from National Geographic

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages