Twitter bot displaying data on traffic crashes in Metro Vancouver (Canada): https://twitter.com/yvr_crash_bot . The goal is to raise public awareness of traffic violence. A project of Vision Zero Vancouver: https://visionzerovancouver.ca/, https://twitter.com/VisionZeroYVR
- Featured intersections: periodically tweet about intersections with many crashes over the years. Data from ICBC, https://public.tableau.com/app/profile/icbc/viz/LowerMainlandCrashes/LMDashboard.
- Traffic death anniversaries: tweet on specific carkilling events. Uses a custom dataset from ICBC that had to be specifically requested for.
- Twitter bot account: https://twitter.com/yvr_crash_bot
- Tweets are posted as cronjobs run via GitHub Actions (see
.github/workflows/*.yaml
) - The credentials for tweeting programmatically are from https://developer.twitter.com.
- We use the developer portal under @yvr_crash_bot
- The credentials are stored as Actions secrets (environment variables) in this repo.
- data files are in
./data
. See./data/README.md
about occasional maintenance.
Others are welcome to fork/copy this code to adapt to their own advocacy work.