Gobble is a service that reads the MBTA V3 Streaming API for all train/bus events, and writes them out to a format that can be understood by the TransitMatters Data Dashboard.
- Python 3.12
- poetry
- Duplicate
config/template.json
intoconfig/local.json
, and change the null out with your MBTA V3 API key. - In the root directory, run
poetry install
to install dependencies - Run
poetry run python3 src/gobble.py
to start. - Output will be in
data/
in your current working directory. Good luck!
You can run the linter against any code changes with the following commands
$ poetry run flake8 src
$ poetry run black --check src
If you've found this app helpful or interesting, please consider donating to TransitMatters to help support our mission to provide data-driven advocacy for a more reliable, sustainable, and equitable transit system in Metropolitan Boston.