Next Bus Arrival Time Python API Wrapper for Citybus Limited and New World First Bus Service Limited
This is a simple python API wrapper for the Next Bus arrival time API in Hong Kong by Citybus Limited and New World First Bus Services Limited
Api Specs: https://www.nwstbus.com.hk/datagovhk/bus_eta_api_specifications.pdf
This is just a py file as of now, so you can simply copy the nextBusApi.py file to your project and install the 'requests' module.
Alternatively you can clone this project and use [poetry](https://python-poetry.org) to install deps.
- clone the project
- poetry shell
- poetry install
Look at the example.py file for usage example. You can simply run `python example.py`
- Could not install packages due to an EnvironmentError: Could not find a suitable TLS CA certificate bundle:
Please find the path of you certificate file by using the code below
`
import certifi
print(certifi.where())
`
finally export this path
`export REQUESTS_CA_BUNDLE='path'`