Race Result Details |
Racer | Willbert Budi Lian (willbertbudi) |
Race Number | 1 |
Date | Fri, 15 Sep 2023 4:33:51 |
Universe | code |
Speed |
38 WPM
![]() |
Accuracy | 92.5% |
Rank | 6th place (out of 7) |
Opponents | alessfd (3rd place) cl0zzy_ (5th place) hahahan (1st place) henryss (2nd place) rafi_ghadhanfar_muhammad (4th 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)
—
Get GEO Location from IP Address
|