pjialin/py12306

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

View on GitHub ↗Jump to charts ↓

Summary Information

Updated 9 minutes ago
Added to GitGenius on September 3rd, 2026
Created on January 7th, 2019
Open Issues & Pull Requests: 195 (+0)
GitHub issues: Enabled
Number of forks: 3,571
Total Stargazers: 14,908 (+0)
Total Subscribers: 322 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 3.1 days
Mean response time: 65.4 days
90th percentile: 235.8 days
Tracked items: 24

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 24
New in 7 days: 0
Closed in 7 days: 0
Avg open age: 658 days
Stale 30+ days: 24
Stale 90+ days: 23

Recent activity

Opened in 7 days: 0
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

No label distribution available yet.

Most active issues this week

No issue events were indexed in the last 7 days.

Detailed Description

py12306 is a ticket booking assistant for China's railway system that automates the purchase of train tickets with support for distributed clusters, multiple accounts, and concurrent task management.

The tool addresses the challenge of securing train tickets during high-demand periods by automating the entire booking workflow. It handles ticket availability queries across multiple dates, automatically solves CAPTCHA challenges, restores user sessions, and places orders without manual intervention. The system supports multiple notification channels including phone calls, email, WeChat, DingTalk, and Telegram to alert users when tickets become available.

The project suits users who need to book tickets programmatically at scale. It is particularly valuable for those managing multiple accounts or booking for several passengers simultaneously. The distributed cluster architecture allows running multiple nodes coordinated through Redis, with automatic failover if the master node goes down and dynamic configuration synchronization across all nodes without requiring restarts. A web management interface provides real-time visibility into users, tasks, and logs. The tool includes Docker support for containerized deployment and offers a free CAPTCHA solving mode integrated with a community sharing platform, though paid alternatives are available.

Development activity shows consistent feature expansion with regular additions of notification integrations and infrastructure improvements. The project maintains active community engagement through multiple communication channels and provides comprehensive testing utilities for configuration validation before deployment. The codebase includes both master and slave node configurations for flexible cluster setup, and the tool supports dynamic configuration updates that propagate automatically across distributed nodes without service interruption.