Giter Club home page Giter Club logo

railway-client-typescript's Introduction

railway-client-typescript

High speed railway client (TypeScript version) 史上最健壮 Robust 的12306抢票程序,跨站抢票,多账号抢票

Usage

  1. 安装依赖包 npm install

  2. 查询余票信息:node dist/index.js leftTickets 2018-03-01 上海 徐州 车次信息将用在第三步中,

  3. 更改 ./application.yml 文件中的账号和乘车信息并添加车次,乘车人信息需要事先在账号中维护。

  4. 订票: node dist/index.js,首次登录需要输入验证码,验证码文件 ./captcha.BMP,打开验证码文件,找到答案对应的位置依次输入到命令行窗口,用 "," 或者 " " 隔开,例如:1,6,7

| 1 | 2 | 3 | 4 |
| 5 | 6 | 7 | 8 |
  1. 取消排队订单:node dist/index.js cancelOrderQueue

查询余票

  • node dist/index.js leftTickets 2018-03-01 上海 徐州 查询2018年3月1日上海到徐州的车票
  • node dist/index.js leftTickets 2018-03-01 上海 徐州 --filter G,T 查询2018年3月1日上海到徐州的 高铁特快 车票
  • node dist/index.js leftTickets 2018-03-01 上海 苏州 徐州 查询2018年3月1日上海到苏州并且是经停 徐州 的车票
  • node dist/index.js leftTickets 2018-03-01 上海 苏州 徐州 --filter G 查询2018年3月1日上海到苏州并且是经停徐州的 高铁 车票

输出报表数据如下:

IMG: leftTickets

Query Left Tickets Options

  • filter | f : 车次过滤条件,输入部分或完整信息以,隔开,如 G108,T, G,T, G
  • time | t : 出发时间范围过滤条件,输入如 15:00,18:30, 17:20
  • orderby | o : 按某些字段排序条件,默认递减排序,字段前加+符号则为递增排序,如 历时,+出发时

查询排队订单

node dist/index.js orderWaitTime 查询排队订单情况

查询未完成订单

node dist/index.js myOrderNoComplete 查询未完成订单情况

IMG: myOrderNoComplete

取消未完成订单

node dist/index.js cancelNoCompleteOrder EG03398601

IMG: cancelNoCompleteOrder

提交订票前会自动检查未完成订单

IMG: checkMyOrderNoComplete

查询未出行订单

node dist/index.js queryMyOrder 2018-08-22 2018-10-31

Develop

npm install

npm install gulp-cli -g

gulp

npm start or node dist/index.js

Prerequisites:

gulp: npm install gulp -g

Updates

V0.6

  1. 查询未出行订单

V0.5

  1. 全面使用 RxJS Observable 异步能力优化数据流程,做到最健壮 Robust 的抢票程序;
  2. 新增支持座位类型
  3. 规范控制台日志打印
  4. 自动打开验证码图片
  5. 新增提交订票前检查未完成订单

v0.4

  1. 新增定时检查用户登录状态功能,防止用户会话超时退出
  2. 新增跨站订票能力
  3. 新增订票成功后电脑响铃提醒
  4. 利用 RxJS 优化项目代码结构

v0.3

  1. 新增跨站查询余票报表
  2. 简化验证码输入方式

railway-client-typescript's People

Contributors

anypossiblew avatar tiven-w 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

railway-client-typescript's Issues

验证码bug

登录后验证码验证成功后任然需要验证

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.