![]() ![]() |
| |||||||||
| Hotspots: Slides and Code TA Corner Comments? Announcements FAQ Static Webspace | ||||||||||
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
import urllib
def temperaturePopup():
connection = urllib.urlopen("http://www.ajc.com/weather")
page = connection.read()
position = page.find("°")
temperature = page[position-2:position]
time = page[position+40:position+51]
showInformation("At " + time + " the temperature was " + temperature + " deg F")