Skip to content
No description, website, or topics provided.
Python TypeScript Other
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore Move scraper to App Engine Feb 10, 2020
LICENSE Update Feb 7, 2020


Code for


All data lives in a Postgres database. To run:

  • scraper/ downloads all MTA data feeds. Runs every minute (can be more/less frequent; MTA refreshes feed every 30 seconds).
  • scraper/ takes the downloaded data and determines where trains are. Repeated runs with --job-name will pick up from where the last run left off. Runs every minute. Can be used to backfill data as well.
  • scraper/ data/nyc to store static GTFS data into the database
  • scraper/ data/nyc/shapes.txt data/nyc/stops.txt generates the subway map given all routes and stations
  • uvicorn to start the web server

To run the code, environment variables need to be set.

  • NYC_MTA_API_KEY is only required for
You can’t perform that action at this time.