# pjialin/py12306

🚂 12306 购票助手，支持集群，多账号，多任务购票以及 Web 页面管理

Repository: https://github.com/pjialin/py12306
Canonical: https://ross.abutalabs.com/products/py12306
Language: Python
License: Apache-2.0
License Family: permissive
Last push: 2026-07-10T21:53:42+00:00

## Health v2 (maintenance only)
Score: 64/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 91, release rhythm 8, longevity 100
- inputs: {"age_days": 2795, "days_push": 54, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 14905, forks 3574 (observed 2026-08-28T04:11:08.911617+00:00)

## What it is
A Python-based ticket booking assistant for China's 12306 railway system, supporting multi-account, multi-task ticket purchasing with distributed cluster mode and a web management UI. It automates ticket queries, captcha solving, and ordering, with notifications via voice, email, WeChat, DingTalk, and Telegram.

## Use cases
- buy train tickets on 12306 automatically
- monitor 12306 ticket availability across multiple dates
- run a distributed 12306 ticket grabbing cluster
- manage multiple 12306 accounts and booking tasks from a web page
- get notified when train tickets become available
- auto-solve 12306 captcha and place orders

## When to choose
- you need automated 12306 ticket purchasing with multi-account and multi-task support
- you want a self-hosted ticket assistant with a web dashboard and Docker deployment
- you need distributed/clustered ticket querying with Redis-based failover

## When to avoid
- you need to book tickets outside China's 12306 railway system
- you want a maintained tool with guaranteed captcha service - the paid captcha provider has shut down and only a free shared platform remains
- you need a mobile app or a fully hands-free booking experience without configuration

## Facets
- artifact type: application
- maturity: maintenance
- function: workflow-automation, web-scraping, scheduling, ocr, self-hosted
- domain: travel, web-development, developer-tools
- platform: python, windows, self-hosted
- tags: 12306, train-tickets, ticket-booking, china-railway, captcha-bypass, distributed, web-ui, notification, automation, docker, linux, macos, web-server

## Member repositories
- pjialin/py12306 (main) score 64

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:11:08.911617+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:06:59.910365+00:00, confidence not recorded.
  - readme: https://github.com/pjialin/py12306 (fetched 2026-08-28T04:11:08.911617+00:00, sha cb38d670ac23)
- Data as of 2026-08-30T08:39:29.467469+00:00.
