Get real time bus in Peking
Project description
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.
Project details
Release history Release notifications | RSS feed
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 details)
File details
Details for the file moniter-bus-peking-3.0.0.tar.gz.
File metadata
- Download URL: moniter-bus-peking-3.0.0.tar.gz
- Upload date:
- Size: 15.1 kB
- Tags: Source
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b2c74593f8696452c1377e9cadf952fde50e0deecdfa134fc28d768f09683f18
|
|
| MD5 |
98790d2392233a14fb784e91ccb7c049
|
|
| BLAKE2b-256 |
5c0517a954980a2277af2e65b7a0e0725c709d12907a3924bc08533e928bda64
|