A library/cli tool to parse all comics' json from xkcd.com
Project description
XKCD Parser
A library/cli tool to parse all comics' json from xkcd.com
Download dump
https://aqendo.github.io/xkcd-parser/parsed.json
Automatic deployment
You can generate JSON dump by yourself and you can download parsed.json file from gh_pages repo or directly from [Github Pages Link]
(https://aqendo.github.io/xkcd-parser/parsed.json). This repository has CI/CD configured to automatically update that file periodically.
CLI Tool Usage
usage: xkcd_parser [-h] json_file
A library/cli tool to parse all comics' json from xkcd.com
positional arguments:
json_file The JSON file of already scraped comics' info. If exists, will be updated with new comics (if any)
options:
-h, --help show this help message and exit
Try not to overload xkcd.com servers by overusing this script. Please!
Using it as a library
import xkcd_parser
# if `is_cli` is set to True, then it will print if it didn't find any new comics
xkcd_parser.update_xkcd_comics_info("path/to/file/comics.json", is_cli=False)
License
XKCD Parser - A library/cli tool to parse all comics' json from xkcd.com
MIT License
Copyright (c) 2025 Sergey Sitnikov
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file xkcd_parser-0.0.6a0.tar.gz.
File metadata
- Download URL: xkcd_parser-0.0.6a0.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f802f4b0d48ae8e8af63f675e0a1cc3418cb10ffa3e4f1897942e8718dc483f0
|
|
| MD5 |
8dcfa8de7515e6b1e50c0a494bbd70c6
|
|
| BLAKE2b-256 |
9d4c7a3c1349d642c7510f9e1cc6e4216c43006843736480e835a24c80a2c500
|
File details
Details for the file xkcd_parser-0.0.6a0-py3-none-any.whl.
File metadata
- Download URL: xkcd_parser-0.0.6a0-py3-none-any.whl
- Upload date:
- Size: 6.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
adb69faecc773f6aad02db257f48ba5d558ffc0bb6b5f414aeae6cea1b5ec3e1
|
|
| MD5 |
93dec0ddeebd0e28313e683dc595c985
|
|
| BLAKE2b-256 |
105d40347e1eafbdc2a434961afa4282d4e1318cca8127664cf4bbeb2a0db182
|