Python code that uses MaxMind's database and module pygeoip to find locations of ip addresses
Download and add the GeoLiteCtiy and GeoLite2-City databases in the databases folder, naming them as GeoLiteCity.dat and GeoLite2-City.mmdb respectively.
Python code that uses MaxMind's database and module pygeoip to find locations of ip addresses
Python