OJHunt Lite
A lightweight async Python tool for querying Online Judge (OJ) statistics across multiple platforms. Track your accepted problems and total submissions from competitive programming sites.
- Async/concurrent requests via
aiohttp - CLI and web interface
- Self-contained crawlers — each file can be used independently
- BSD-2 Licensed
CLI
Install once, use anywhere (pipx, uv tool, or pip):
pipx install ojhunt
# or: uv tool install ojhunt
# or: pip install ojhunt
Run directly from a clone (no install needed):
git clone https://github.com/Liu233w/ojhunt-lite
cd ojhunt-lite
uv run ojhunt tourist@codeforces
Run via container (no Python needed):
docker run --rm ghcr.io/liu233w/ojhunt-lite tourist@codeforces
Example output:
$ ojhunt tourist@codeforces tourist@atcoder
Querying CodeForces...
Querying AtCoder...
AtCoder done (1051 solved, 1.25s)
CodeForces done (2962 solved, 2.78s)
Total: 2962 solved / 6437 submissions
┏━━━━━━━━━━━━┳━━━━━━━━━━┳━━━━━━━━┳━━━━━━━━━━━━━┳━━━━━━━━━━━━┓
┃ Crawler ┃ Username ┃ Solved ┃ Submissions ┃ Status ┃
┡━━━━━━━━━━━━╇━━━━━━━━━━╇━━━━━━━━╇━━━━━━━━━━━━━╇━━━━━━━━━━━━┩
│ CodeForces │ tourist │ 2962 │ 5386 │ OK (2.78s) │
│ AtCoder │ tourist │ 1051 │ 1051 │ OK (1.25s) │
└────────────┴──────────┴────────┴─────────────┴────────────┘
Completed: 2 OK, 0 failed (2.78s total)
Full CLI reference, login-required crawlers, and JSON output: docs/cli.md
Web Interface
The web interface is designed to be self-hosted. Clone the repo and deploy:
git clone https://github.com/Liu233w/ojhunt-lite
cd ojhunt-lite
uv sync
uv run fastapi run src/ojhunt/web/app.py --port 8080
Container images are available at ghcr.io/liu233w/ojhunt-lite — see docs/web.md.
Use Crawlers in Your Code
Add ojhunt as a project dependency:
uv add ojhunt
# or: pip install ojhunt
Then import crawlers directly:
import asyncio, aiohttp
from ojhunt.crawlers.codeforces import query
async def main():
async with aiohttp.ClientSession() as session:
result = await query(session, "tourist")
print(result["solved"], result["submissions"], result["solved_list"])
asyncio.run(main())
Supported Platforms
See the src/ojhunt/crawlers/ directory. Archived crawlers (dead sites) are in archived_crawlers/.
Development
Adding crawlers, running tests, templates: docs/development.md
License
BSD 2-Clause License — see individual crawler files for full license text.
Credits
Lightweight Python rewrite of OJHunt (acm-statistics), originally inspired by 西北工业大学ACM查询系统 (npuacm.info) by Jiduo Zhang.
Special thanks to test account providers: @leoloveacm, @2013300262
Metadata
Release files for ojhunt 2026.4.5.145743
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ojhunt-2026.4.5.145743.tar.gz | 413.5 kB | With provenance | Details for ojhunt-2026.4.5.145743.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ojhunt-2026.4.5.145743-py3-none-any.whl | Python 3 | none | any | Details for ojhunt-2026.4.5.145743-py3-none-any.whl |
Total release size: 684.5 kB
Release files / ojhunt-2026.4.5.145743.tar.gz
| Download URL | ojhunt-2026.4.5.145743.tar.gz |
|---|---|
| Size | 413.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e2bd60845f2e8131132406f25e0face37b14fafc4c65ff3648479b7c42a7ce5c
|
|
BLAKE2b-256 checksum How to use checksums |
3bf8ec7aebae38a3d0fe1b10478e4c8a0fa66bad15c9885e80ac0a4f011d6050
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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 Apr 5, 2026.
Transparency logRelease files / ojhunt-2026.4.5.145743-py3-none-any.whl
| Download URL | ojhunt-2026.4.5.145743-py3-none-any.whl |
|---|---|
| Size | 271.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
25535930b03388b8a94f4cb3fa08c7b2c7d9283b6500c52239b59ea016a51c43
|
|
BLAKE2b-256 checksum How to use checksums |
1b1659e28a41d0cc39faffc5360a0ca87f30aaedcb091d7aa9febbc6d6e62970
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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 Apr 5, 2026.
Transparency logSecurity for ojhunt 2026.4.5.145743
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for ojhunt-2026.4.5.145743.tar.gz
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 Apr 5, 2026.
Transparency logA 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.