I need a library (preferably written in Python) which is able to take a series of IP addresses (or geographic coordinates) and plots them on a World Map.
I already found this one, but it outputs data as a .svg file and it's simply unable to cope with large data sets.
Please note that I need something which can be downloaded and run locally, so no data uploading to 3rd party web services.
Thanks!
As others have mentioned, you can fetch the locations and write some code to put them on a map, but there's also an easier way to do this.
You can use IPInfo's free Map IPs tool, which will create an interactive map of IP addresses. Here's an example for AWS IP Ranges.
You can either copy/paste the IPs or use the tool via cURL. It will process up to 500K IPs.
$ cat ipList | curl -XPOST --data-binary @- "ipinfo.io/map?cli=1"
Disclaimer: I work at IPInfo.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With