The annual grab train ticket war officially kicked off…
But this is what happens to most of us: when you get all excited and ready to get a ticket, you find it hard to get! It’s hard to go home!
So, as a programmer monkey, of course you have to use the way of the programmer monkey to grab tickets! Here are some of the most popular ticket-grabbing tools on Github.
testerSunshine/12306
GitHub is currently the most popular ticket grab software, written based on Python. Supports the following functions:
- Automatic code
- Automatic login
- Punctual booking and leakage
- Smart alternate
- Email notification
- Server sauce notice
This project uses deep learning model training such as Tensorflow, Keras, SkLearn, and of course crawlers. We can look at the libraries that the project depends on:
Selenium is an automated tool that emMM uses… The core of the project is verification code recognition and crawler
-
The verification code can be identified locally, you need to download the model, put it in the project root directory, all code from this project portal, thank you
1 \. Model download links: https://pan.baidu.com/s/1rS155VjweWVWIJogakechA password: BMLM group can also download 2 \. Download git repository: https://github.com/testerSunshine/12306model.gitCopy the code
-
Self-hosting cloud coding server construction: 12306_CODE_server
-
If you have a free server, you can set up your own server in the issues (please note server security!).
Please note that it is best not to use Tensorflow in Windows, because there are many problems when installing Tensorflow in Windows!
Above is the architecture flow chart of the project. You can take a look at the log example of buying tickets:
Is the 355th query to date: the 2018-02-12 trains G4741 G2365, G1371, G1377, G1329 query without tickets proxy Settings without always takes 429 ms trains: G4741 originating station: Shanghai terminal: Shaoyang Second class: Some are trying to submit reservations… Try to submit the order… Tickets issued successfully queued successfully, current remaining tickets: 359 tickets in use Automatic verification code verification code passed, order being submitted The order has been submitted successfully! -6 ms -7 ms -4 ms -4 ms Congratulation you have successfully booked your ticket. The order number is: EB52743573, please open your browser to log in 12306, access ‘Outstanding Order’ and complete payment within 30 minutes!
Thanks to the author! This is the project address: github.com/testerSunsh…
pjialin/py12306
Pjialin/Py12306: Another Python-based ticket grab project, Github currently has a star of 9.4K! That’s how I snagged my ticket home last year!
Let’s take a look at the supported features:
- Multi – date query remaining tickets
- Automatic code ordering
- User Status Recovery
- Telephone voice notification
- Multi – account, multi – task, multi – thread support
- Query multiple sites for a single task
- Distributed operation
- Docker support
- Dynamically modify the configuration file
- Email notification
- Web Management Page
- Wechat message notification
- Proxy Pool support (Pyproxy-Async)
A distributed ticket grab project, but also support automatic coding is called the coding platform, unlike the above is to use the training model to code. However, the project does have a Web management page, developed based on Flask, a framework in Py’t ‘hon. According to the author, he didn’t get a ticket at 12306 at that time, so it took several days to develop… What can I say… Strong!
The dependency packages shown above are also user-friendly under Windows. Main features:
Distributed cluster
Clustering depends on Redis and is currently supported
- A single master node runs simultaneously with multiple child nodes
- When the active node is down, the child node is automatically promoted as the active node
- The active node is automatically restored to the real active node
- The configuration is synchronized to all child nodes through the primary node
- After the configurations of the primary node are modified, you do not need to restart the child nodes
- Messages from child nodes are synchronized to the master node in real time
Background management interface is also very beautiful and simple:
The following program operation interface:
Project address: github.com/pjialin/py1… Star!!!!
12306bypass
This tool believes everybody has heard of, shunt snatches a ticket. Simply artifact, now also support alternate, this software I have been using, that is quite give force! And it was developed in 2013. It’s always been free! If you want to automatically hit the code, as long as 20 year fee can, can hit the code for a year!
The software is also because the author did not grab tickets at that time, so the development of this software, see, can not help but sigh demand is the biggest productivity!
Software by: Cheney. Small Wind, based on Microsoft. Net development grab train ticket procedures, and at that time the author is still in the university!
The story behind this software, after all, I believe we are familiar with, not to say more, details can go to the official website worship. www.bypass.cn/about.html
Thanks to the above three gods, so many years I have never found a scalper to buy tickets, are robbed with the above software, the important thing is free, free!