12306 grab votes artifacts on GitHub, help home New Year

Went to the weekend, but this weekend some little special.

Once a year from the world's largest human activity has left the great migration more than a month, we work outside year junior partner most people have to deal with the history of the most difficult gearing up to grab the grab for votes and small series.

However, goose, as a technician, how could always rely on their own hands to grab a ticket, this is an insult to the profession of small series.

Xiao Bian really do not want memories of last year's Chinese New Year did not go home to grab a ticket through, when the high-speed rail subway ride, had to count the time between each train is the best in about half an hour, for a total transfer to lie down 3 high-speed rail, and finally to a relatives, rub the tragic experience of the ride home.

Fortunately, some time ago Xiaobian forget seeing where several artifacts 12306 grab votes, although not find the original, but is supported on Github search ah, direct input box 12306, sorted by most star, apparently What is the front two, small and quickly share with you students, I hope the students can celebrate the new year can grab yourself a ticket home.

12306

First, the first appearance is on our Github about 12306 software to grab votes highest star winner --12 306, well, Xiao Bian acknowledged, if not the name Xiao Bian could not find it.

Project Address: https://github.com/testerSunshine/12306

Can be seen, this project so far, a total of 19.7k get horrible star, showing its powerful (quietly say something, k-breaking projects in Github star has been considered a very powerful project).

Here you can see, the last update of the project is 9 hours ago, this project is still very fresh, will not ensure food diarrhea.

A total of 22 chiefs made outstanding contributions to the project, contributed a total of 419 times commit.

You big brother for everyone New Year back home is really a lot of trouble ah. . . .

You can see from the personal information, this is an open source project by the wenxianping micro-gangster from the AU.

Look at submit information:

We can see that since September this year, the project has been in a high speed update stage, and the authors spare no effort to optimize the project.

从提交信息来看,9 月份以来,大量的工作应该是在更新候补车票的功能,并且持续优化,竟然多达一天提交了 3 个有关的版本更新。

从 Python 版本支持来看,目前此项目已经不再支持 Python2.x 了,支持的范围为 Python 3.6 - 3.7.4 。

功能列表上的功能已经十分全面了,足够完成我们自动化抢票的需求了。

py12306

第二个出场的依然是 Github 上的高星项目:py12306 。

从更新时间上来讲,也是最近两天之内是有更新的,同样星数达到了 8k 。

项目地址:https://github.com/pjialin/py12306

看来国人对抢票真的是需求非常旺盛的,小编赶紧也加了一个 star ,表示对大佬的敬仰之情。

同样,这个项目的推荐环境依然是 python3.6 以及以上版本。

并且这个项目加入了分布式运行,有钱的土豪可以试试一台电脑抢不到,多台电脑一起上的感觉。

一个亮点是这个项目加入了邮件通知和微信消息通知的功能。这对于小编这种上班狗来讲是十分友好的,毕竟我们不可能随时去看车票又没抢到,能多一个消息及时通知的功能,至少能让我们及时登录账号进行支付。

不至于白白抢到车票而忘记支付导致悔恨终身的事情出现。

注意

因为 12306 有封禁机制(废话,如果没有大家各种脚本工具一起上,这个访问量多少硬件也扛不住),查询时间间隔不要设置的太短,尽量避免使用 A 云或者 T 云等有名的云服务提供商,这些大型云服务提供商的 IP 往往都会是封禁的重灾区。

比较靠谱的方案就是放在自己本地的电脑上运行,为了过年回家,费电就费点电吧。

最后,小编衷心的祝愿大家都能成功的踏上返程回家的火车、动车、高铁等等各种公共交通工具(毕竟安全性和性价比在那摆着的),平平安安的回家和家人团圆。

Guess you like

Origin www.cnblogs.com/babycomeon/p/12076518.html