Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/1995eaton/xkcd_downloader
https://github.com/1995eaton/xkcd_downloader
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/1995eaton/xkcd_downloader
- Owner: 1995eaton
- Created: 2014-02-01T17:52:33.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2019-04-14T19:52:38.000Z (over 5 years ago)
- Last Synced: 2023-08-03T19:06:46.006Z (over 1 year ago)
- Language: Python
- Size: 820 KB
- Stars: 10
- Watchers: 6
- Forks: 3
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
XKCD Downloader
===============Python modules required: Pillow, requests
```shell
sudo pip install Pillow requests
```
Example-usage
-------------Fetch comics 150 through 170:
```shell
python xkcd_downloader.py -r 150 170
```
Specify output directory (default: './'):
```shell
python xkcd_downloader.py -o images
```
Fetch the most recent strip:
```shell
python xkcd_downloader.py 0
```
Fetch comic 188:
```shell
python xkcd_downloader.py 188
```
Fetch comics 188, 200, and 350:
```shell
python xkcd_downloader.py 188 200 350
```
Fetch only the image:
```shell
python xkcd_downloader.py -d 188
```
Fetch all comics:
```shell
python xkcd_downloader.py -a
```
Fetch all comics (images-only):
```shell
python xkcd_downloader.py -ad
```
Fetch a random comic:
```shell
python xkcd_downloader.py --random
python xkcd_downloader.py --random -d
```
Fetch 5 random comics:
```shell
python xkcd_downloader.py --random 5
python xkcd_downloader.py --random 5 -d
```Configuration
-------------Title font size, alt text font size, and line offset can be changed through the variables in the top of the script. By default, the script looks for the TTF font file 'xkcd.ttf' located in the script directory.