<reponame>mtedone/sbo-python-programming-language<gh_stars>0
import urllib.request
from xml.etree.ElementTree import XML

u = urllib.request.urlopen('http://ctabustracker.com/bustime/map/getStopPredictions.jsp?stop=14787&route=22')

data = u.read()

doc = XML(data)

for pt in doc.findall('.//pt'):
    print(pt.text)

    


import urllib.request
from xml.etree.ElementTree import XML

u = urllib.request.urlopen('http://ctabustracker.com/bustime/map/getStopPredictions.jsp?stop=14787&route=22')

data = u.read()

doc = XML(data)

for pt in doc.findall('.//pt'):
    print(pt.text)