Race Result Details |
Racer | Clippy (jesspacito) |
Race Number | 3 |
Date | Fri, 2 Jun 2023 20:55:13 |
Universe | code |
Speed |
40 WPM
![]() |
Accuracy | 95.9% |
Rank | 5th place (out of 6) |
Opponents | spartibartfast (4th place) ttgh24201 (2nd place) |
Text typed:
import re
import sys
import urllib2
import BeautifulSoup
usage = "Run the script: ./geolocate.py IPAddress"
if len(sys.argv)!=2:
print(usage)
sys.exit(0)
if len(sys.argv) > 1:
ipaddr = sys.argv[1]
geody = "http://www.geody.com/geoip.php?ip=" + ipaddr
html_page = urllib2.urlopen(geody).read()
soup = BeautifulSoup.BeautifulSoup(html_page)
— (other)
by www.pythonforbeginners.com/
(see stats)
|