wangyihang / 12306 Goto Github PK
View Code? Open in Web Editor NEW12306网站抢票Python脚本
12306网站抢票Python脚本
$ python 12306.py 明天 上海 北京 kyfw.12306.cn
正在获取官网的火车站信息文件版本...
获取成功 !
官网版本号 : [ ]
正在获取本地缓存文件文件名...
获取成功 ! 本地文件名 : [ _station_names.dat ]
正在解析本地文件版本号...
本地版本号 : [ ]
官网火车站文件更新 , 正在下载...
正在读取文件...
正在解析站点信息...
解析成功 ! 总站点数 : [ 31836 ]
正在读取文件...
正在解析站点信息...
解析成功 ! 总站点数 : [ 31836 ]
查询中...
====================================
Traceback (most recent call last):
File "12306.py", line 314, in
main()
File "12306.py", line 52, in main
train_no = queryResult.getTrainNo(i)
File "/Users/yunlongwen/Documents/12306/querier.py", line 103, in getTrainNo
return self.trainsJson[index]["queryLeftNewDTO"]["train_no"]
KeyError: 0
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.