Skip to content

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

Notifications You must be signed in to change notification settings

chiksum/hk-bus-crawling

 
 

Repository files navigation

HK Bus Crawling

Python 3.8.8 Data Fetching

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%