** 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.
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/"
}
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.
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -m 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
MIT © Gabriel Prates