Giter Club home page Giter Club logo

12306's Introduction

火车票脚本

依赖模块安装

sudo python setup.py install

查询

python src/query_trains.py [出发站点] [目的站点] [日期]

test

登录

python src/request_login.py 

自动下单

Usage:

python    src/auto_get_order.py [-f] FROM_STATION [-t] TO_STATION [-d] DATE [-c] TRAIN_CODE [-s] SEAT_TYPE

Arguments:

    FROM_STATION 出发站点(eg. 北京)
    TO_STATION   目的站点(eg. 上海)
    DATE         出发日期(eg. 2017-12-25)
    TRAIN_CODE   列车类型(eg. D,G,T,Z,K,L)
    SEAT_TYPE    座位型号(eg. 0)---[0 商务, 1 一等, 2 二等, 3 高级软卧, 4 软卧, 5 动卧, 6 硬卧, 7 软座, 8 硬座, 9 无座]

Options:

    -h --help       show this
    -f --from       start station
    -t --to         to station
    -d --date       start off date
    -c --code       train code
    -s --seat       seat type

Example:

    python src/auto_get_order.py -f 上海 -t 成都 -d 2017-12-25 -c DGTZK -s 012345678

12306's People

Contributors

xiaominghe2014 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

12306's Issues

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.