Skip to content

Instantly share code, notes, and snippets.

@JakenHerman
Created May 12, 2014 04:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JakenHerman/027bd62485c1cbfe1739 to your computer and use it in GitHub Desktop.
Save JakenHerman/027bd62485c1cbfe1739 to your computer and use it in GitHub Desktop.
__author__ = 'Jaken'
import urllib
import webbrowser
lat = 41.980262
lon = -87.668452
u = urllib.urlopen('http://ctabustracker.com/bustime/map/getBusesForRoute.jsp?route=22')
data = u.read()
f = open('rt22.xml', 'wb')
f.write(data)
f.close()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment