Skip to main content

Library to access xkcd.com

Project description

This is a Python library for accessing and retrieving links to comics from the xkcd webcomic by Randall Munroe. It is NOT endorsed or made by him, it’s an entirely independent project.

It makes use of the JSON interface to Randall’s site to retrieve comic data. One can create comic objects manually using Comic(number), or can use the helper functions provided- getLatestComic(), getRandomComic(), and getComic()- to do this. Once you have a Comic object, you can access data from it using various provided methods.

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-2.2.tar.gz (2.7 kB view details)

Uploaded Source

File details

Details for the file xkcd-2.2.tar.gz.

File metadata

  • Download URL: xkcd-2.2.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for xkcd-2.2.tar.gz
Algorithm Hash digest
SHA256 8de1f35bfa13b5f201a29c49b8b100eefd7a90a60388b09a564079545cd5834e
MD5 c9e3e2d2d4c40392cb34969e4f8ea636
BLAKE2b-256 05fb47e8894a67c293785619eb6e4cb957dd37f021da372148d2eabb9a30afd3

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