Overview
Interfacelift has a daily wallpaper on the homepage. I wrote this script to get this daily image and set it as the desktop background on my computer. I couldn't use their API because the free trial is only 100 requests, so I went with web scraping. I use Beautiful Soup (which has excellent documentation) and requests
(over urllib
). This is my first web scraping script!
How to use
-
Make sure you have:
- Python 3
- Python's
requests
module (tryimport requests
in Python) - Beautiful Soup 4 (try
import bs4
in Python) gsettings
(trygsettings --version
in your terminal)
-
Download the script.
-
Set
RESOLUTION
andDOWNLOAD_LOCATION
to your preferred values ininterfacelift.py
. I set this as~/Pictures/Wallpapers/interfacelift
. -
Run the script.
-
If you'd like, you can set up a Linux system to run the script regularly. Run
crontab -e
and add a line to the bottom according to the instructions. In your crontab line, runinterfacelift.sh
. Seeinterfacelift.sh
for more information about why it is requred to run that instead ofinterfacelift.py
.- For example, I have
0 * * * * bash ~/path/to/interfacelift.sh
in mycrontab
. This runs the script every hour.
- For example, I have
Issues?
If you have any issues, feel free to open an issue and I will see what I can do.