discry¶
Scrape the public Discord web client for the values that change with a build.
The package fetches https://discord.com/app, https://ptb.discord.com/app,
and https://canary.discord.com/app the same way
discord_build_number_scrapper
fetches a build number. No login. A field that disappears in a later build is
left empty. The rest of the snapshot is still written.
from discry import fetch_latest
latest = fetch_latest()
print(latest["stable"].build_number, latest["stable"].capabilities)
What gets saved¶
A normal local run writes two files:
data/latest.jsonis the current snapshot of every channel.updated_atis the run clock. Each channel object holds the surface fields, includingscraped_at.data/history.jsonis an append-only log, the same role asdiscord_build_number_scrapper'sdata/history.json. A row is added whenchannel,build_number,version_hash, orcapabilitieschanges. An empty version hash falls back tobuild_id.
The snapshot can also be written as Markdown, CSV, TOML, and YAML. History can use those formats too. The hourly GitHub workflow writes all five snapshot formats and keeps history as JSON.
The other project's history columns are channel, build_number,
build_hash, build_date, and first_seen. This project's default history
columns are channel, build_number, version_hash, build_id,
capabilities, capability_values, client_build_number,
release_channel, built_at, and first_seen.
Pages¶
- Installation covers Python 3.8+ for the package and 3.11+ for development.
- Usage covers a scrape, the files, the clock,
--from-repo, and GitHub. - Configuration lists every setting, its default, its environment variable, and the CLI flags.
- API reference is generated from the docstrings, one page per module.