heikalb / yvr-crash-bot

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

yvr-crash-bot

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

Features

  1. 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.
  2. Traffic death anniversaries: tweet on specific carkilling events. Uses a custom dataset from ICBC that had to be specifically requested for.

Details

  • 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.

References

Derivative works

Others are welcome to fork/copy this code to adapt to their own advocacy work.

About


Languages

Language:Python 100.0%