-
Fetch queries from www.12306.cn vai official APIs / 通过12306车票查询接口制作命令行火车票查询工具
-
This a small cralwer script for search train schedule infromation using
requests
library inPython
, the hardest part is how to analyse train code and train route information from javascript files. / 本项目最核心知识点在于requests
库的使用,难点在于如何分析js文件寻找车站和英文关系对应以及列车车次信息获取后如何解析。 -
Meanwhile, this is also a chance to improve my
Python
skills, like usingyield
to generating iterator and how to use@property
decorators and others. / 其他的知识点还有yield
使用,@property
装饰器,dicopt
命令行界面以及prettytable
表格输出colorama
表格上色。