As you see this code I am trying to locate the user location using IP but it not working.
import pygeoip
gip = pygeoip.GeoIP("GeoLiteCity.dat")
res=gip.record_by_addr('Enter the ip')
for key,val in res.items():
print('%s : %s' % (key,val))
As you see this code I am trying to locate the user location using IP but it not working.
import pygeoip
gip = pygeoip.GeoIP("GeoLiteCity.dat")
res=gip.record_by_addr('Enter the ip')
for key,val in res.items():
print('%s : %s' % (key,val))