Skip to main content

Get real time bus in Peking

Project description

About The Project

Build Status codecov

  • 这个项目是为了获取北京公交的公开信息,例如所有的公交线路,某个公交线路的所有站点,以及某线路的实时公交。
  • 这个项目的成品是一个python package,导入这个这个package,就可以获取这些信息。
  • 这个项目参考了github上的两个开源项目(链接在后面)

screenshot

实时公交到站情况:

实时公交到站图片

Quick start

  1. Clone the repo

    git clone https://github.com/github_username/repo_name.git
    
  2. 安装依赖

     pip install -r requirements
    
  3. 在你的.py中

     from moniter_bus import bus
    
     bus.print_help()    # 查看使用帮助
     bus.get_station(509) # 获取某条线路
     bus.get_all_buses() # 获取所有线路
     bus.get_real_time_bus(509) # 获取这条线路上的实时公交到站情况
    

Reference 参考

License

Distributed under the MIT License.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

moniter-bus-peking-3.0.0.tar.gz (15.1 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page