Skip to content

Datamine/IP-Mapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IP-Mapper

This is a tool for mapping frequency counts of IPs onto a world map, displaying proportionally-sized circles to represent them. Builds open my previous Travelmap project.

Usage:

python ip-mapper.py <your-input-file-here>

Input files should be formatted as a frequency count (integer) followed by a space, an IPv4 address, and a newline. An example is included: example-input.txt. (The IPs listed therein have been randomly generated.)

There are two output maps:

1. A black-and-white one, which displays all datapoints in a high-contrast red, so they can be easily geographically identified. Example.

2. A colored one, which displays transparent datapoints, so it is easier to gauge the geographical frequency of IPs over small areas. Example.

Required Libraries:

Beyond that, the script queries an online db to geolocate the IP, so an internet connection is required for it to run. Note that the accuracy of that database is apparently 72% within a distance of 250km for the US, though it may vary significantly among other countries (example: for Germany, that accuracy drops to 44%, with 54% of queries going unresolved).

Acknowledgements

This script comes with two Robinson projection maps based on open-source images:

About

Maps Frequency Counts of IPs onto a World Map

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages