-
Clone the project.
-
Go to the project directory and i) start a virtual environment by running
python3 -m venv env.
ii) activate the virtual environment as
source env/bin/activate
-
Install the required packages for the project as
pip3 install -r requirements.txt
-
To fetch the latest picture of the day from Astronomy.com gallery, run the webscraping script as
python3 webscraper.py
-
Now for the wallpapers to be picked randomly from the scraped images and changed automatically at regualr intervals, we have to put a script to be run as a cron job.
- Open the list of cron jobs as
crontab -e
- Add your own cron job in the list in the format ` m h dom mon dow command` as
* * * * * path/to/choose_wallpaper.sh
This runs the bash script
choose_wallpaper.sh
and changes the wallpaper every minute.