This is the list of fares in Jabatan Keretapi Sabah website . I scrap it using php script.
Just download the jkns_fares.json file, it can be use directly as data source.
This will scrap the Jabatan Keretapi Sabah website and update the jkns_fares.json file. To update the json file, run this command
$ php crawler.php
- Update code to use PSR.
- Write test.