Skip to content

barrettj12/transportnsw

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

transportnsw

I did some reverse engineering of the NSW TrainLink API, so I could find the cheapest day to travel. This repo contains the script I used to do this.

To download dependencies needed for the script:

npm ci

Open fetch.js and set the constants DEP_STATION, ARR_STATION, START_DATE, END_DATE to your desired values.

To run the script:

node .

I welcome any PRs to make this script more robust/flexible/user-friendly.

About

Hacking the NSW Trainlink API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published