Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

When's My Transport: A set of Twitter bots that tell Londoners when their next bus, Tube or DLR is arriving

branch: master
README.md

When's My Bus & When's My Tube

A suite of three Twitter bots that tell you what time London's buses, Tube and DLR are arriving at a stop or station near you. It currently runs as three bots:

Tweeting is easy:

@whensmybus 135

Will check the Tweet for its geotag and work out the next bus

@whensmybus 135 from Limehouse station

Will check the Tweet for the location and work out the next bus

@whensmytube District Line from Tower Hill

Will check the Tweet for the station name and work out the next Tube

@whensmytube DLR from Shadwell

Will check the Tweet for the station name and work out the next DLR

Thanks to some clever natural language processing, lots of variations on grammar and special directions are possible, including specifyin multiple buses and destinations, such as:

@whensmybus 135 15 D3 from Limehouse
@whensmybus 135 from Limehouse to Old Street
@whensmytube Central Line to Bank from Bethnal Green

This also works with Direct Messages so you can message privately, although Direct Messages do not support geotagging

More info from a user perspective about how to use the bot is available here:

Source Code

Available from https://github.com/qwghlm/WhensMyBus

Requirements

Requires: Python 2.6 or greater to run the bot. Python 2.7 required for unit testing. Not yet tested with Python 3

See INSTALL.md for installation instructions and details of dependencies

Credits & Thanks

Something went wrong with that request. Please try again.