Skip to content

📷🌍🐡🌄📅 Download and set National Geographic's Photo of the Day as background image

License

Notifications You must be signed in to change notification settings

lobaluna/photo-of-the-day

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

📷🌍🐡 Photo of the Day 🌄📅

** Made to Gnome interface, but I accept pull requests 😄

This is a initial idea to save the National Geographic's Photo Of The Day. I love this photos, then I can set them as my desktop background image, what I did before manually.

How to use

index.js file

This file make the request to the NatGeo server and returns the image url. Initially, the var req is the URL from the photo page, but if you need to set any other thing to make requests with NodeJS, you can change it to an object, like this:

// original
const req = "http://www.nationalgeographic.com/photography/photo-of-the-day/";

// with any configuration
const req = {
  host: "your proxy ip, for exemple",
  port: "your proxy port, for exemple",
  path: "http://www.nationalgeographic.com/photography/photo-of-the-day/"
}

getDesktopBG.sh file

This file get the return of index.js, download the image on ./images/ dir and set her as your background image.

After clone it, run:

$ cd ./photo-of-the-day
$ ./getDesktopBG.sh

Well, this is it. Those is just the first steps. Already is something.

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -m 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

License

MIT © Gabriel Prates

About

📷🌍🐡🌄📅 Download and set National Geographic's Photo of the Day as background image

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 56.5%
  • JavaScript 43.5%