Download a new xkcd comic every hour and keeps a chosen quantity of them in the local filesystem at a time. Default is set on 2 comics.
- Made for Linux systems
- It requires that you have
wget
installed on your system - Scraping is made with
beautifulsoup4
- Clone this repo with
$ git clone https://github.com/cauabernardino/comic_service
- Make
addservice.sh
executable and run it
$ chmod +x addservice.sh
$ ./addservice.sh
-
It will automatically create the target directory, install requirements and setup the
comic_service.py
script into the crontable to run every full hour.- If you want the service to run every minute, you can change the
cronjob
variable inaddservice.sh
, by commenting current one and un-commenting the other.
- If you want the service to run every minute, you can change the
-
The comics will be stored at
/comicvault
in your home directory -
Checking the
syslog
can be used to check the execution times of the script
$ tail -f /var/log/syslog
- To remove the service you can use
crontab -e
to edit your crontable OR usecrontab -r
to remove it completely