Skip to content

A project that engineers and visualizes geographic data from IP addresses.

Notifications You must be signed in to change notification settings

gvsa123/GeoMapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

69 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

geomapper

The project is an exercise in creating a data pipeline, basic web development and data processing using python. It queries a MariaDB server for failed wordpress login attempts, converts the logged ip addresses into geolocations, and outputs an html map using a flask and jinja2 framework.

You need to supply it with a proper config.ini to be able to connect to your database:

Run python geomapping/mapper.py for testing. Change ADDR in mapper.py for custom addresses.

query_database config.ini

[SSHTUNNEL]
ssh_username="SSH_USERNAME"
ssh_password="SSH_PASSWORD"
ssh_private_key_password="SSH_PRIVATE_KEY_PASSWORD"

[MYSQL]
sql_username="SQL_USERNAME"
sql_password="SQL_PASSWORD"
db="DB"

sample output

sample out

About

A project that engineers and visualizes geographic data from IP addresses.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published