GithubHelp home page GithubHelp logo

dwstevens / rearthpornbackgroundr Goto Github PK

View Code? Open in Web Editor NEW
1.0 3.0 0.0 164 KB

Mac OS X script to download hi-res images from various subreddits and store them in a folder for use in random Desktop & Screensaver system preference backgrounds

License: MIT License

Shell 100.00%

rearthpornbackgroundr's Introduction

rEarthPornBackgroundr

Mac OS X script to download hi-res images from various subreddits and store them in a folder for use in random Desktop & Screensaver system preference backgrounds

Overview

  1. Downloads hi-res* files from a set of sub-reddits. Uses several built in command line tools from Mac OS X Developer tools including: curl, tidy, sips, cut, egrep, cp

  2. There is a lot that can be done to clean this up and make it a little more robust and configurable but it should do the job.

Contributing

Feel free to fork and send pull requests. I just hacked this together out of frustration as I could find no tool to do the exact job.

Use

  1. Open the Terminal.app
  2. Change to a directory where you'll store the script. cd /path/to/project if it doesn't exist you can mkdir -p /path/to/project
  3. Clone the repo with git clone https://github.com/dwstevens/rEarthPornBackgroundr.git. This will create a directory called rEarthPornBackgroundr in the path you created/changed to in step 2.
  4. Open the rEarthPornBackgroundr.sh script (e.g., nano rEarthPornBackgroundr.sh and modify the desktopImgDirectory variable. This should be the directory you specify in the Desktop & Screensaver system preference panel. Save the file, if using nano, control-x will do the job.
  5. After saving the file, you may have to modify the exec flag on the file so that it can be run via a simple /path/to/project/rEarthPornBackgroundr.sh otherwise you have to run it with a bash prefix /bin/bash /path/to/project/rEarthPornBackgroundr.sh which ain't so bad?
  6. Run the file via ./rEarthPornBackgroundr.sh, which assumes you are still in the directory with that file in it. Otherwise you either need to cd /path/to/project/rEarthPornBackgroundr or /path/to/project/rEarthPornBackgroundr/rEarthPornBackgroundr.sh
  7. You will see a bunch of output, and if everything went ok, you'll have a bunch of new images in your designated desktop images folder.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.