Skip to content


Subversion checkout URL

You can clone with
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
Failed to load latest commit information.
db Update bus data
lib Add in safety checks for Twitter limits
logs Empty file to create directory
tests Fixes for WhensMyTube
.gitignore Ignore Sublime files Convert INSTALL to Markdwon
LICENSE License Whitespace fixes
config.cfg.sample Update bus data Fix unit tests Geocoder error handling Split WMTLocations into separate services for Bus and Tube Default for silent_mode

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


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

See for installation instructions and details of dependencies

Credits & Thanks

Something went wrong with that request. Please try again.