Skip to content

💬 Easily downloads all xkcd comics

License

Notifications You must be signed in to change notification settings

neelkamath/xkcd-downloader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

xkcd Downloader

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.

Installation

Prerequisites

Building

  1. Clone the repository:
    • HTTPS: git clone https://github.com/neelkamath/xkcd-downloader.git
    • SSH: git clone git@github.com:neelkamath/xkcd-downloader.git
  2. Change the directory: cd xkcd-downloader
  3. Install dependencies:
    • Windows: pip install -r requirements.txt
    • Other: pip3 install -r requirements.txt

Usage

  1. Change the directory: cd xkcd-downloader/src

  2. 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.

  3. You can optionally have the script run each time your computer boots.

    • Windows:
      1. Go to the directory C:\Users\<YOUR_USERNAME>\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup, where <YOUR_USERNAME> is your username.
      2. Create a shortcut pointing to the location of the script.
      3. 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, clicking Opens with: in the General tab and choosing Python.
    • Other:
      1. Make the script executable: chmod +x downloader.py
      2. Schedule it:
        1. crontab -e
        2. At the end of the file, add: @reboot <PATH>, where <PATH> is the path to the script
  4. 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.

Credits

License

This project is under the MIT License.

About

💬 Easily downloads all xkcd comics

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages