Giter VIP home page Giter VIP logo

bus-interrogation-tunnel's Introduction

🚌 Bus Interrogation Tunnel (bitbus)

best of BITs

BIT 班车查询接口。

Note

只有查询功能,故无需登录。

🧪 例子

(要先克隆仓库,pdm install

🚍 查询车次

$ pdm run bitbus /vehicle/get-list date==2023-03-13
{
    'count': 52,
    'code': '0',
    'message': 'ok',
    'data': [
        {
            'pkid': 3338,
            'id': '2217130562077421589',
            'shuttle_type': 3,
            'car_number': '京ADG889',
            'name': '良乡校区-中关村校区',
            'train_number': '',
            'service_time': '1,2,3,4,5',
            'origin_address': '良乡校区',
            'end_address': '中关村校区',
            'intermediate_site': None,
            'origin_time': '06:20',
            'end_time': '07:10',
            'reservation_num_able': 51,
            'type': 0,
            'teacher_ticket_price': '10.0',
            'student_ticket_price': '6.0'
        },
…
}

也可以筛选始末站:

$ pdm run bitbus /vehicle/get-list date==2023-03-13 address==良乡校区->中关村校区

💺 查询座位

$ pdm run bitbus /vehicle/get-reserved-seats id==2208639427336042078 date==2023-03-11
{'code': '1',
 'message': 'ok',
 'data': {'reserved_count': 48,
          'reservation_num': 3,
          'reserved_seat_number': ['3', '10', '14', …],
          'is_full': 1}}

🛠️ 开发

$ pdm install
$ pipx install pre-commit  # Alternate: python -m pip install pre-commit
$ pre-commit install
$ pdm run lint

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.