Historical data of the Air Pollution Index (API, wiki) in Malaysia from 2005 to 2017 with web scraping script.
- Some location may not be available such as the three mobile continuous air quality monitoring station (MCAQM) in Malaysia as its history is not saved in the website.
- There are some monitoring station that used to be turned on and now discontinued or vice versa.
- There are a few dates that the API failed to retrieve data.
- The web scraping script could be improved further.
- Retrieved data is saved under the cache folder. You can unpack the archive to save some time.
- ✅ Rewrite web scraping script to continue from current file.
- Write instructions on how to run script
Data from 2005 to 2017 are retrieved from data.gov.my under MOSTI, DOE and KeTSA. The data is licensed under Creative Commons Attribution and Open Definition 2.1.
The data from 2018 to current date are retrieved directly from APIMS website. Data might still be under copyright (unclear) but it's safe to assume the data will eventually be released under the same license as above.
The web scraping script is licensed under MIT.