Advertisement
rfmonk

buss.py

Jan 8th, 2014
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.19 KB | None | 0 0
  1. #!/usr/bin/env python
  2.  
  3.  
  4. import urllib
  5. u = urllib.urlopen('http://ctabustracker.com/bustime/map/getBusesForRoute.jsp?route=22')
  6. data = u.read()
  7. f = open('rt22.xml', 'wb')
  8. f.write(data)
  9. f.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement