[Chicago] Parsing Metra's Online Schedule

Cosmin Stejerean cstejerean at gmail.com
Thu Apr 10 20:19:53 CEST 2008

On Wed, Apr 9, 2008 at 7:51 PM, Massimo Di Pierro
<mdipierro at cs.depaul.edu> wrote:
> The Metra schedule already parsed and normalized in routes is here:
>      http://mdp.cti.depaul.edu/examples/static/metra.pickle
>  [(line,type,routes),...]
>  type=1 for weekdays, 2 for saturday and 3 for sundays
>  routes is {route_number:[(station,time),(station,time),...],...}
>  time is in minutes from midnight.
>  Getting this was not as easy as it seems and took a lot of work.

Thank you! I exported the data to JSON as well for easy manipulation
in non-Python languages, available so far at
I'm giving you full credit for supplying the data, see

Cosmin Stejerean

More information about the Chicago mailing list