Code Monkey home page Code Monkey logo

12306's Introduction

12306余票提醒

程序使用 python3 版本

目前 12306 已更换接口,程序不能运行,需要查找最新接口,更换才能使用。

程序说明:

实时监控车次余票,一旦有指定车次或指定座位类型的车票,将立即发邮件进行提醒 如需停止监控,关闭程序即可。

1.请确保邮箱已开启POP3/SMTP服务,否则无法接收邮件。 设置方式:以QQ邮箱为例,点击邮箱设置 >> 账户 >> POP3/SMTP服务 >> 开启

2.输入格式请严格按照例子:

请输入出发站:郑州

请输入到达站:北京

请输入车次(首字母大写):T168

请输入车次日期:2016-07-31

请输入邮箱地址:[email protected]

邮件几分钟发一次:10

想要的座位类型:无

(可选类型:无 无座 硬座 硬卧 软卧 一等座 二等座 特等座 商务座) 一、‘无’代表含义为:本列车只要有票就提醒,不分座位类型。 二、选择‘无座’、‘硬座’等任意一项,有此座位类型的票立即提醒。

Windows下运行

程序已经打包成exe文件,可在pc下运行。 下载地址:http://pan.baidu.com/s/1kVwETgz 密码: ae2p

12306's People

Contributors

damonshi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

12306's Issues

response status 403

请问这玩意还在维护吗

url = 'https://kyfw.12306.cn/otn/lcxxcx/query?purpose_codes=ADULT&queryDate={}&from_station={}&to_station={}'.format(data,where,go)

r = requests.get(url, verify=False)

返回 403 噢

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.