Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

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.

Metadata

Release files for xkcd-parser 0.0.6a0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for xkcd-parser 0.0.6a0
File Size Uploaded
xkcd_parser-0.0.6a0.tar.gz 4.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for xkcd-parser 0.0.6a0
File Interpreter ABI Platform
xkcd_parser-0.0.6a0-py3-none-any.whl Python 3 none any Details

Total release size: 10.2 kB

Release files / xkcd_parser-0.0.6a0.tar.gz

Download URL xkcd_parser-0.0.6a0.tar.gz
Size 4.1 kB
Tags Source
SHA-256 checksum
How to use checksums
f802f4b0d48ae8e8af63f675e0a1cc3418cb10ffa3e4f1897942e8718dc483f0
BLAKE2b-256 checksum
How to use checksums
9d4c7a3c1349d642c7510f9e1cc6e4216c43006843736480e835a24c80a2c500
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.3

Release files / xkcd_parser-0.0.6a0-py3-none-any.whl

Download URL xkcd_parser-0.0.6a0-py3-none-any.whl
Size 6.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
adb69faecc773f6aad02db257f48ba5d558ffc0bb6b5f414aeae6cea1b5ec3e1
BLAKE2b-256 checksum
How to use checksums
105d40347e1eafbdc2a434961afa4282d4e1318cca8127664cf4bbeb2a0db182
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.3

Release history Release notifications | RSS feed

This release

0.0.6a0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page