skpracta / hk-bus-crawling

Daily update the bus route, fare, stop information across KMB, CTB and NWFB in HK. The data information is ready to work with the ETA APIs provided by data.gov.hk

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

HK Bus Crawling

Python 3.8.8 Data fetching status

This project is to fetch the bus route information of KMB, NWFB, CTB into one single JSON. It is daily synced to data.gov.hk and launched in gh-pages.

Usage

Daily fetched JSON is in gh-pages or direct download here

Installation

To install the dependencies,

pip install -r requirements.txt

Data Fetching

To fetch data, run the followings

python ctb-nwfb.py
python kmb.py
python nlb.py
python parseFare.py
python parseTimetable.py
python matchRoutes.py
python mergeRoutes.py

Citing

Please kindly state you are using this app as HK Bus Crawling@2021, https://github.com/hkbus/hk-bus-crawling

Contributors

ChunLaw

About

Daily update the bus route, fare, stop information across KMB, CTB and NWFB in HK. The data information is ready to work with the ETA APIs provided by data.gov.hk

License:GNU General Public License v2.0


Languages

Language:Python 100.0%