Skip to main content

Dinosaur Comic Parser

A transcript generator for Ryan North's Dinosaur Comics

Installation

Install parse-qwantz with pip

  pip install parse-qwantz

Usage

You need to download the image file for the comic you want transcribed, for example https://qwantz.com/comics/comic2-02.png. Then run parse-qwantz:

$ parse-qwantz comic2-02.png
T-Rex: Today is a beautiful day to be stomping on things! As a dinosaur, stomping is the best part of my day indeed!

T-Rex: *gasp*

T-Rex: What's that, little house? You wish you were back in your own time? THAT IS TOO BAD FOR YOU

T-Rex: Perhaps you too will get a stomping, little girl!
Utahraptor: WAIT!

Utahraptor: Is stomping really the answer to your problem(s)?
T-Rex: Problem(s)?

T-Rex: My only problem(s) have to do with you interrupting my stomping!
T-Rex: 〚small〛 crazy utahraptor!

You can also call it with

python -m parse_qwantz

The argument can also be a directory path instead of a file path. In such case the program will run on all files in the specified directory.

Options

--output-dir

By default, the program outputs to stdout and logs to stderr. With this option, when processing file image_name.png it will output to OUTPUT_DIR/image_name.png.txt and log to OUTPUT_DIR/image_name.log.

--generate-svg

Instead of transcribing the comic, generate a vectorized version in the SVG format and print it to the standard output.

Instead of transcribing the comic, transcribe just the footer.

Conventions

Bold and italics are marked with "◖◗" and "▹◃" respectively. This is to avoid ambiguity which may result from using characters like "*" or "_".

All descriptions are in "〚〛" brackets. Each line that isn't just description starts from a "character" name followed by a colon. That "character" might be one of the actual characters, but also "Narrator", "Off panel", "Banner", "Book cover" etc.

When some text in a panel is obscured but can be reconstructed, it's in "⦃⦄" braces. So far this applies only to 2 comics: #59 and #61.

When some text in a panel is obscured and not reconstructed, it's replaced either by the special "…" character, or a description of how it's obscured in "〚〛" brackets.

Notes

This program still does not work on all DC strips, but at this point it should work correctly on pretty much all "standard" strips and some less-standard ones (thanks to the system of overrides). Eventually all existing strips should work, including the guest comics, with updates for new comics coming out regularly.

After all comics are working, I might add some other features, like generating SVG images.

Running Tests

To run tests, run the following command:

  pytest test/

Acknowledgments

This program would not be possible without the wonderful comics by Ryan North! Thanks, Ryan, and congratulations on the 20th anniversary of your comics! Btw the anniversary comic will totally not work with this script, haha! (at least until I add an override)

Metadata

Release files for parse_qwantz 2026.5.3

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

Source distribution (sdist)

Source distribution for parse_qwantz 2026.5.3
File Size Uploaded Provenance Actions
parse_qwantz-2026.5.3.tar.gz 499.6 kB Without provenance Details for parse_qwantz-2026.5.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for parse_qwantz 2026.5.3
File Interpreter ABI Platform Actions
parse_qwantz-2026.5.3-py3-none-any.whl Python 3 none any Details for parse_qwantz-2026.5.3-py3-none-any.whl

Total release size: 1.0 MB

Release files / parse_qwantz-2026.5.3.tar.gz

Download URL parse_qwantz-2026.5.3.tar.gz
Size 499.6 kB
Tags Source
SHA-256 checksum
How to use checksums
9c036d198e8d120144d086c36e5066800171d05c28ffd6bca9e266329c5724b2
BLAKE2b-256 checksum
How to use checksums
30a01f6807eec71b343c9c80603de2c9e2b58d055ec6e3de94759119526e2829
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.12.3

Release files / parse_qwantz-2026.5.3-py3-none-any.whl

Download URL parse_qwantz-2026.5.3-py3-none-any.whl
Size 511.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d831b9b48e3d2a1656bdf0c46894c3f295af9f0d946024691e4293c4cdcdae48
BLAKE2b-256 checksum
How to use checksums
d0686e0a8bd9791be7695489837fd1c689a652f33c86d63f17c3c17f43c0e080
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.12.3

Security for parse_qwantz 2026.5.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

2026.5.3 This release

2 release files No provenance

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