当前仓库属于暂停状态,部分功能使用受限,详情请查阅 仓库状态说明
35 Star 67 Fork 19

cls1991 / 12306-ticket-query
暂停

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
main.py 420 Bytes
一键复制 编辑 原始数据 按行查看 历史
cls1991 提交于 2017-12-15 15:26 . py3适配
# coding: utf8
import os
from core.query import query_tickets
# 切换工作目录到项目根目录
project = os.path.split(os.path.realpath(__file__))[0]
os.chdir(project)
def main():
"""
test main
"""
from_station = '北京'
to_station = '武汉'
train_date = '2017-12-16'
query_tickets(from_station, to_station, train_date, is_subscribe=True)
if __name__ == '__main__':
main()
Python
1
https://gitee.com/cls1991/12306-ticket-query.git
git@gitee.com:cls1991/12306-ticket-query.git
cls1991
12306-ticket-query
12306-ticket-query
master

搜索帮助