|
1 | | -[](https://raw.githubusercontent.com/hyperium/hyper/master/LICENSE) [](https://raw.githubusercontent.com/hyperium/hyper/master/LICENSE) |
| 1 | +# Download Images and Set Wallpapers from your choice of Subreddit! |
2 | 2 |
|
3 | | -# Wallpapers from your choice of Subreddit (default - /r/wallpaper): |
| 3 | +Using this script: |
| 4 | +* Download any number of images from any subreddit! |
| 5 | +* Select your sort type (Top, Hot, New, Controversial) |
| 6 | +* Select your sort time (All, Year, Month, Week, Day) |
| 7 | +* Automatically set and switch Wallpaper from the downloaded images |
| 8 | +* Store the links to all the downloaded images (in case you want to access later?) |
4 | 9 |
|
5 | 10 | This Script will download all the Images (First page of hot section) from /r/Wallpaper subreddit to a local folder every 24 hours. |
6 | 11 | It will also automate a Slideshow change of Wallpapers from that local storage. Wallpaper will change every 30 Minutes. |
7 | 12 | This works only on Gnome Based Desktops. |
8 | 13 |
|
9 | | -**Grab the stable release from here : [v1.1.2](https://github.com/tsarjak/WallpapersFromReddit/releases/latest)** |
| 14 | +## No Dependencies! Just Download and Run! |
| 15 | +Just download the files and run the file - no need to setup anything at all! |
10 | 16 |
|
11 | | -### To Install |
| 17 | +To download via Terminal: |
12 | 18 | ```shell |
13 | 19 | git clone https://github.com/tsarjak/WallpapersFromReddit.git |
14 | | -cd WallpapersFromReddit |
15 | | -sudo pip install -r requirements.txt |
16 | 20 | ``` |
17 | 21 |
|
18 | 22 |
|
19 | 23 | ### To run the code |
| 24 | + |
20 | 25 | In terminal: |
21 | 26 | ```shell |
22 | | -#In Home Directory or the Directory in which you cloned/downloaded/installed the script |
| 27 | +# In the Home Directory or the Directory in which you cloned/downloaded the script |
23 | 28 | cd ~/WallpapersFromReddit |
24 | | -python wallpaper.py --subreddit <your choice of subreddit> -hq |
25 | | -#add -hq at the end if you only want high quality photos from the subreddit, by default it will download all the images! |
| 29 | +python main.py |
| 30 | + --subreddit <your choice of subreddit> |
| 31 | + --sort_type <hot|new|rising|top> |
| 32 | + --sort_time <all|year|month|week|day> |
| 33 | + --update_every <Number of minutes after which you want to change the wallpapers> |
| 34 | + --run_for <Total number of hours you want to run the script for> |
| 35 | + --download_only <Toggle this to either only download the images, or to also keep cycling throught the wallpapers> |
26 | 36 | ``` |
27 | | -Example : |
| 37 | + |
| 38 | +Example: |
28 | 39 | ```shell |
29 | | -python wallpaper.py --subreddit earthporn -hq |
| 40 | +python wallpaper.py --subreddit earthporn -sort_type top --sort_time all --download_only |
30 | 41 | ``` |
31 | | ---Subreddit part is optional - By default it will fetch images from /r/wallpaper |
32 | | -You can see the progress of the download after above execution |
| 42 | + |
33 | 43 |
|
34 | 44 | ### After First run, you might want to run the app in background (This is possible even on first run!) |
35 | 45 |
|
|
0 commit comments