0

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))
wjandrea
  • 28,235
  • 9
  • 60
  • 81

0 Answers0