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 hashes)