import urllib url = urllib.URLopener() resp = url.open('http://myip.dk') html = resp.read(114) end = html.find("</title>") start = html.find("IP:") + 3 print html[start:end].strip()
You need to create an account or log in to post comments to this site.