GithubHelp home page GithubHelp logo

12306's Introduction

12306

  • python版本支持

    • 2.7 3.0+
  • 依赖库

  • 项目开始

    • 修改config/ticket_config.yaml文件,按照提示更改自己想要的信息
    • 运行根目录run.py,即可开始
  • 目录对应说明

    • agency - cdn代理
    • config - 项目配置
    • damatuCode - 打码兔接口
    • init - 项目主运行目录
    • myException - 异常
    • myUrllib - urllib库
  • 思路图 image

  • 项目声明:

    • 本软件只供学习交流使用,务作为商业用途,交流群:286271084
    • 能为你抢到一张回家的票,是我最大的心愿
  • 2017.5.13跟新

    • 增加登陆错误判断(密码错误&ip校验)
    • 修改queryOrderWaitTime,校验orderId字段bug,校验msg字段bug,校验messagesbug
    • 修改checkQueueOrder 校验 data 字段的列表推导式bug
    • 增加代理ip方法,目前已可以过滤有用ip
  • 2018.1.7 号更新

    • 增加自动配置
      #station_date:出发日期,格式ex:2018-01-06
      #from_station: 始发站
      #to_station: 到达站
      #set_type: 坐席(商务座,二等座,特等座,软卧,硬卧,硬座,无座)
      #is_more_ticket:余票不足是否自动提交
      #select_refresh_interval:刷新间隔时间,1为一秒,0.1为100毫秒,以此类推
      #ticke_peoples: 乘客
      #damatu:打码图账号,用于自动登录
      
    • 优化订票流程
    • 支持自动刷票,自动订票
  • 2018.1.8 更新

    • 增加小黑屋功能
    • 修复bug若干
    • 增加多账号同时订票功能
    • 增加按照选定车次筛选购买车次
  • 2018.1.9 更新

    • 增加手动打码,只是登录接口,完全不用担心提交票的效率问题,要挂linux系统的话,还是去注册个打码兔吧
    思路
    1.调用PIL显示图片
    2.图片位置说明,验证码图片中每个图片代表一个下标,依次类推,1,2,3,4,5,6,7,8
    3.控制台输入对应下标,按照英文逗号分开,即可手动完成打码,
    
    • 修改无座和硬座的座位号提交是个字符串的问题
    • 增加校验下单需要验证码功能
    • 增强下单成功判断接口校验
  • 2018.1.10 更新

    • 优化查票流程
    • 修改二等座的余票数返回为字符串的问题
    • 优化订单查询bug
  • 2018.1.12 更新

    • python3 版本支持,python3的同学请切换至python3分支

12306's People

Contributors

testersunshine avatar vanglis avatar

Stargazers

 avatar

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.