Skip to main content

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.

Release files for moniter-bus-peking 3.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for moniter-bus-peking 3.0.0
File Size Uploaded
moniter-bus-peking-3.0.0.tar.gz 15.1 kB Details

Release files / moniter-bus-peking-3.0.0.tar.gz

Download URL moniter-bus-peking-3.0.0.tar.gz
Size 15.1 kB
Tags Source
SHA-256 checksum
How to use checksums
b2c74593f8696452c1377e9cadf952fde50e0deecdfa134fc28d768f09683f18
BLAKE2b-256 checksum
How to use checksums
5c0517a954980a2277af2e65b7a0e0725c709d12907a3924bc08533e928bda64
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6

Release history Release notifications | RSS feed

This release

3.0.0 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page