Have you ever been bored and wanted offline access to xkcd? Thre are many other xkcd downloads out there, but this one is by far the best because it downloads super fast using download parallelization, doesn't require complex setups with tools such as databases, facilitates easier reading by using year/month
subdirectories, is well documented for multiple platforms such as Android, and is easily configurable.
NOTE: A few comic numbers might be skipped because they either don't exist or don't contain a visual.
- Clone the repository:
- HTTPS:
git clone https://github.com/neelkamath/xkcd-downloader.git
- SSH:
git clone git@github.com:neelkamath/xkcd-downloader.git
- HTTPS:
- Change the directory:
cd xkcd-downloader
- Install dependencies:
- Windows:
pip install -r requirements.txt
- Other:
pip3 install -r requirements.txt
- Windows:
-
Change the directory:
cd xkcd-downloader/src
-
Run:
- Windows:
python downloader.py
- Other:
python3 downloader.py
Supplying
-v
or--verbose
will print the number of comics to be printed.Supplying
-d <DIRECTORY>
or--directory <DIRECTORY>
will download comics to<DIRECTORY>
instead of the current directory. - Windows:
-
You can optionally have the script run each time your computer boots.
- Windows:
- Go to the directory
C:\Users\<YOUR_USERNAME>\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
, where<YOUR_USERNAME>
is your username. - Create a shortcut pointing to the location of the script.
- Make sure python scripts open with
Python
(so that when you open the file from Windows Explorer it runs the script and doesn't open the editor). You can do this by right-clicking the script, clickingOpens with:
in theGeneral
tab and choosingPython
.
- Go to the directory
- Other:
- Make the script executable:
chmod +x downloader.py
- Schedule it:
crontab -e
- At the end of the file, add:
@reboot <PATH>
, where<PATH>
is the path to the script
- Make the script executable:
- Windows:
-
If you're using Termux, you can have the comics show up in Google Photos on your device by running
termux-setup-storage
and specifying the path to be./../../storage/pictures/xkcd
.
- Neel Kamath: initial work
- goldlagoon: download parallelization, command line application
This project is under the MIT License.