About The Project
- 这个项目是为了获取北京公交的公开信息,例如所有的公交线路,某个公交线路的所有站点,以及某线路的实时公交。
- 这个项目的成品是一个python package,导入这个这个package,就可以获取这些信息。
- 这个项目参考了github上的两个开源项目(链接在后面)
实时公交到站情况:
Quick start
-
Clone the repo
git clone https://github.com/github_username/repo_name.git
-
安装依赖
pip install -r requirements
-
在你的.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)
| 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
|