Coder Social home page Coder Social logo

12306spy's Introduction

12306spy

背景

从12306购票, 从A点到B点没有票, 但是可以补票或者多买一段票.

比如一列车有100站, 我上车的站点是50 , 终点站是80. 需要保证我能上车,可以这样操作 :

  1. 补票类型 : 可以买 50-70的票, 然后再补70-80的票
  2. 多买一段票 : 买20-80的票, 或者20-90, 这样多买了一段票, 但是保证了我能上车.
  3. 多买且补票 : 买20-70的票, 然后再补70-80的票

如何使用

输入开始结束站点,以及日期,查询所有车次

点击右侧的点击直达 , 则开始在这里车次中可以上车的票

resources/img.png resources/img.png

Docker

docker run -d -p 8081:8080 registry.cn-hangzhou.aliyuncs.com/elroy93/12306spy:latest

windows/mac源码启动

  • windows : 点击install.bat安装依赖
  • mac :
    cd 12306spy
    python -m venv venv
    source ./venv/bin/activate
    pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
    python main.py --port 8081

打开http://127.0.0.1:8081/web/main.html即可使用`

红色的部分是需要着重关注的地方。

提前买: 在起点站前多买N站之前的票

少买 : 少买N站的票,需要补票

ide推荐

  • pycharm
  • vscode + jupyter插件

Star History

Star History Chart

12306spy's People

Contributors

elroy93 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.