KTM Komuter Malaysia train timetable. In tables and routes view.
Last updated: July 2023
All data is sourced from the official KTM Komuter Timetable website up to the date of the last update mentioned above.
All conversions are made using Python! ❤️
- Download train times in PDF format from https://www.ktmb.com.my/traintime.html.
- Convert all the PDF files to CSV format using Camelot.
- Manually check and correct the data in the CSV files, ensuring there are no trailing commas, and each train time is placed in the correct column.
- Convert all the CSV files to JSON format using Pandas.
- Updated all train times to the latest schedule (last updated: July 2023).
- New feature added: a switch button to toggle between "to" and "from" stations on Route page.
- Migrated the old Pages router to the new App router. Learn more.
- Implemented URL parameters to store state, replacing the use of React context.
- Integrated Camelot to directly convert PDF to CSV, eliminating the need for manual conversion to .docx.
- Added page descriptions, improved SEO, and UI updates.