Script that scrapes the r/wallpaper subreddit and saves the images.
- Please checkout the following link before getting started: How to Scrape Reddit
- If you do not have a dependency, use
pip install dependency
to install the following:- Praw
- BeautifulSoup
- requests
- You will need to have an account on Reddit. Follow the above link's guide and replace the following code with your information. All of which are string values.
client_id="SCRIPT_ID",
client_secret="CLIENT_SECRET_KEY",
user_agent="SCRIPT_NAME",
username="REDDIT_USERNAME",
password="REDDIT_PASSWORD",
- Next, replace the
dir
variable in both thewallpaperscraper.py
&setRandomWallpaper.py
files with the absolute path to the folder you'd like to save the wallpapers to. - Run
python wallpaperscraper.py
to gather all your background images. - Run
python setRandomWallpaper.py
to set a random wallpaper from the downloaded images.
- Alternatively, on Windows, you can right-click your background. Select "Personalize". Then change your background to "Slideshow" and choose the folder you're saving the files to to change pictures over a time interval.