Skip to main content

No project description provided

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

xkcd_parser-0.0.5a0.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

xkcd_parser-0.0.5a0-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

Details for the file xkcd_parser-0.0.5a0.tar.gz.

File metadata

  • Download URL: xkcd_parser-0.0.5a0.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for xkcd_parser-0.0.5a0.tar.gz
Algorithm Hash digest
SHA256 b3ab207824058ce985e5e3cf01c76079d3400649535d47d2baf01153bb8f177e
MD5 11ada8df8abccd363e00eddd3d84b7de
BLAKE2b-256 eaf107904a72175eeb3e9ff99f3d713d2a280b1ba341d8724de4af0c909f0118

See more details on using hashes here.

File details

Details for the file xkcd_parser-0.0.5a0-py3-none-any.whl.

File metadata

  • Download URL: xkcd_parser-0.0.5a0-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

Hashes for xkcd_parser-0.0.5a0-py3-none-any.whl
Algorithm Hash digest
SHA256 f05e962d6ff68f4c6db6e0c6c68549516d44543179824e8dfd26ca5098697ac6
MD5 84ae96d8df098663c338ad6fbe8ea92d
BLAKE2b-256 84eaa2f12208d76df60c690bf33f54a1a25b9aa17c41042ca2d1bac429ab4f2a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page