[Share] A 12306 ticket grabbing project developed based on Python, come and learn!

Hello, everyone, I am Mu Yixiang~

12306 ticket grabbing software

"Golden Week" The National Day Golden Week has arrived, which means that some open source projects will usher in another boom. This time, what is on the list is a script related to 12306 ticket grabbing. It is written based on Python and has functions such as automatic login, precise snapping, missing items, intelligent waitlisting, and email notification. Currently, this script has received 30,000 stars, demonstrating its unparalleled appeal.

The open source address is at the end of the article

Already have functions
  • Check the remaining tickets on multiple dates: Want to know the remaining tickets in the next few days in advance? "12306" helps you realize it! Enter the date to easily check the remaining tickets for the specified date.

  • Automatically code and place orders: You no longer have to worry about not being able to grab tickets fast enough. "12306" will automatically code and submit orders for you. As long as you enter the passenger information, the system will automatically complete the order, saving time and effort.

  • User status recovery: Accidentally closed a web page or browser? No problem, "12306" allows you to easily restore to your previous state. Even if an unexpected situation occurs, you can continue your previous operations and purchase tickets without worries.

  • Telephone voice notification: After successfully grabbing the ticket, the system will automatically dial the phone number set by the user for voice notification, and receive the news of successful ticket purchase as soon as possible.

  • Multi-account, multi-task, multi-thread support: Use multiple accounts at the same time, perform multiple tasks, and enable multi-threaded ticket grabbing to double your ticket grabbing efficiency! Use multi-threading technology to improve ticket purchasing efficiency and say goodbye to the limitations of a single account.

  • Single task multi-site query: One task can query the remaining ticket information of multiple stations at the same time, allowing you to easily compare prices and train times. With just one operation, you can get fare and train information for multiple stations.

  • Distributed operation: Build a single master node and multiple sub-nodes to improve the stability and availability of the system. Even if there is a problem with one node, other nodes can still operate normally, ensuring a smooth ticket purchase process.

  • Docker support: Convenient for you to quickly deploy and run the environment. No complicated configuration is required, and a complete development environment can be set up in just a few minutes. Deploy projects easily with Docker's containerization technology.

  • Dynamically modify the configuration file: You can modify the configuration file at any time while the program is running, and it will take effect without restarting the program. Flexibly adjust the configuration to meet different needs.

  • Email notification: After the ticket grabbing is successful, the system will automatically send an email to your mailbox to let you know the results of the ticket grabbing as soon as possible. The email notification function allows you to get timely information on successful ticket purchase.

idea map

picture

Open source address: https://github.com/testerSunshine/12306

Interested friends can download and build the project themselves to have fun~

Guess you like

Origin blog.csdn.net/qq_44794321/article/details/133884335