Skip to main content

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
  • Only depends on aiohttp and selectolax
  • BSD-2 Licensed

Quick Example

$ uv run ojhunt.py 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)

Installation

git clone https://github.com/Liu233w/ojhunt-lite
cd ojhunt-lite
uv sync

Container images are available at ghcr.io/liu233w/ojhunt-lite — see docs/web.md.

Usage

CLI

uv run ojhunt.py tourist@codeforces tourist@atcoder
uv run ojhunt.py -d tourist -- codeforces atcoder   # default username
uv run ojhunt.py --list                              # list available crawlers

Full CLI reference, login-required crawlers, and JSON output: docs/cli.md

Web Interface

uv run fastapi dev web/app.py --port 8080

Web UI, API docs, and container setup: docs/web.md

Use Crawlers in Your Code

import asyncio, aiohttp
from 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 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查询系统 by Jiduo Zhang.

Special thanks to test account providers: @leoloveacm, @2013300262

Metadata

Release files for ojhunt 2026.3.29.141643

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

Source distribution (sdist)

Source distribution for ojhunt 2026.3.29.141643
File Size Uploaded Provenance Actions
ojhunt-2026.3.29.141643.tar.gz 396.3 kB With provenance Details for ojhunt-2026.3.29.141643.tar.gz

Built distribution (wheel)

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

Total release size: 687.4 kB

Release files / ojhunt-2026.3.29.141643.tar.gz

Download URL ojhunt-2026.3.29.141643.tar.gz
Size 396.3 kB
Tags Source
SHA-256 checksum
How to use checksums
11e898a8a30cd98f2de1349a887ad97cbd58e345760d7e0bc330bcd02177f6c8
BLAKE2b-256 checksum
How to use checksums
b71823102b153a9c03231b86c6fe5b1d00aac943baec2f837a6f8486a119a56e
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 Mar 29, 2026.

Transparency log

Release files / ojhunt-2026.3.29.141643-py3-none-any.whl

Download URL ojhunt-2026.3.29.141643-py3-none-any.whl
Size 291.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
39492bc26421786d365d6a97c504ec474ba1bf7562c7d130995203d396a2a130
BLAKE2b-256 checksum
How to use checksums
91322ca68bcf5368f9e5c71830ede66a12fe42e421d74c19d265dde0a60cf51c
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 Mar 29, 2026.

Transparency log

Security for ojhunt 2026.3.29.141643

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.

Select from 2 files

Attestation for ojhunt-2026.3.29.141643.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 Mar 29, 2026.

Transparency log

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
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