Python tool for collecting / downloading carpark availability data for Singapore from the Datamall API of Singapore's Land Transport Authority (LTA). A Datamall API key (currently free) is needed for downloads from the API with this tool.
Collected sample data is included in data
.
- Requirement: Python 3.6
- Clone or download this repository.
- In your Python environment, run
pip install -r path_to_repository/requirements.txt
.
- Copy and rename
config.template.json
toconfig.json
. - Obtain API key from Datamall API and add the key at
"api_key": ""
inconfig.json
. - In your Python environment, run
python carpark_data_downloader.py
. - Collected data is stored in
data
.