Skip to main content

QChanCrawler

QChanCrawler is a command-line tool that retrieves posts from a QQ channel and saves them to a text file.

Requirements

  • Python 3.10 or later.
  • An exported browser cookie file in the Mozilla/Netscape cookies.txt format.

Installation

pip install qchancrawler

Usage

qchancrawler [-h] -g ID -c PATH [-o PATH] [-p NUM]

For example, start at page 5 and write posts to posts.txt:

qchancrawler -g 012345 -c ./cookies.txt -o posts.txt -p 5

The package can also be invoked as a module:

python -m qchancrawler -g 012345 -c ./cookies.txt

Options:

  • -g, --guild: QQ channel/guild ID to crawl.
  • -c, --cookie: Path to the exported QQ cookie file.
  • -o, --outfile: Output file or existing directory. If omitted, the output file defaults to ./<guild-id>.txt. When an existing directory is supplied, <guild-id>.txt is created inside it.
  • -p, --page: Page number from which to start crawling. Defaults to 1.

Output

Existing output files are preserved and new entries are appended.

Each exported post is written on its own line in this format:

<author>: <text> <post-id>

A guild ID and a post ID can be used to view a specific post:

https://pd.qq.com/g/<guild-id>/post/<post-id>

Cookie file

The cookie file must use the Mozilla/Netscape cookies.txt format. Browser extensions and other cookie-export tools can create files in this format.

Cookie files contain sensitive authentication data. Do not commit, publish, or share them.

Disclaimer

Use QChanCrawler only for channels and data you are authorized to access. Protect personal data and exported cookies, avoid excessive requests, respect service rate limits, and comply with QQ's terms and policies.

Release files for qchancrawler 0.1.0

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

Source distribution (sdist)

Source distribution for qchancrawler 0.1.0
File Size Uploaded
qchancrawler-0.1.0.tar.gz 3.9 kB Details

Built distribution (wheel)

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

Total release size: 9.4 kB

Release files / qchancrawler-0.1.0.tar.gz

Download URL qchancrawler-0.1.0.tar.gz
Size 3.9 kB
Tags Source
SHA-256 checksum
How to use checksums
ad5f7a1178216aa8c8db72a63d52ded4825cfcbce41f049ff21ce90662696392
BLAKE2b-256 checksum
How to use checksums
ef1360138b46dd605b1174eda0104bf995380fe1b10465024fcfea059a8ec094
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 8, 2026.

Transparency log

Release files / qchancrawler-0.1.0-py3-none-any.whl

Download URL qchancrawler-0.1.0-py3-none-any.whl
Size 5.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
573312701fb4f4b73a9d13716f44c7614775fd0ffbe8bd8230b9d2ba0429faa5
BLAKE2b-256 checksum
How to use checksums
c76c512881e79e2b1cbebcc59bb25f82691f7134c4cd9d292a50550744c8ac6f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 8, 2026.

Transparency log

Release history Release notifications | RSS feed

0.2.0

2 release files

This release

0.1.0 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