# testerSunshine/12306

12306智能刷票，订票

Repository: https://github.com/testerSunshine/12306
Canonical: https://ross.abutalabs.com/products/12306
Language: Python
License: MIT
License Family: permissive
Archived: true
Last push: 2023-04-02T03:19:43+00:00

## Health v2 (maintenance only)
Score: 10/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 3395, "days_push": 1249, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: archived
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 34086, forks 9602 (observed 2026-08-28T04:11:58.661065+00:00)

## What it is
A Python-based ticket-sniping assistant for China Railway's 12306 booking system that automates login, CAPTCHA recognition, and ticket purchasing. It supports scheduled pre-sale grabbing, waitlist monitoring, and notifications via email or ServerChan.

## Use cases
- automatically buy 12306 train tickets
- grab train tickets the moment they go on sale
- monitor for released train tickets and book automatically
- auto-solve 12306 captcha during booking
- get notified when a train ticket becomes available
- run a ticket booking bot on a server with docker

## When to choose
- you need automated ticket purchasing on China's 12306 railway system
- you want scheduled pre-sale grabbing and waitlist (candidate order) monitoring
- you prefer a self-hosted solution with docker deployment and email/ServerChan notifications

## When to avoid
- you need to book flights, buses, or non-12306 train services
- you want a maintained tool - the last release was April 2023 and 12306 frequently changes its API
- you need a GUI - it is configured via a Python file and run from the command line

## Facets
- artifact type: application
- maturity: maintenance
- function: workflow-automation, ocr, machine-learning, http-client, cli
- domain: travel, developer-tools
- platform: python, cli
- tags: 12306, train-tickets, ticket-booking, captcha-recognition, china-railway, web-automation, automation, docker, linux

## Member repositories
- testerSunshine/12306 (main) score 10

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:11:58.661065+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-29T16:27:51.642904+00:00, confidence not recorded.
  - readme: https://github.com/testerSunshine/12306 (fetched 2026-08-28T04:11:58.661065+00:00, sha c84d27d3044b)
- Data as of 2026-08-30T08:39:29.467469+00:00.
