https://github.com/ammaraskar/geoip-scraper
Scrapes specified files, generating a pretty google powered map with geoip results
https://github.com/ammaraskar/geoip-scraper
Last synced: 8 months ago
JSON representation
Scrapes specified files, generating a pretty google powered map with geoip results
- Host: GitHub
- URL: https://github.com/ammaraskar/geoip-scraper
- Owner: ammaraskar
- License: other
- Created: 2013-06-27T13:40:17.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2015-03-09T18:54:06.000Z (over 11 years ago)
- Last Synced: 2025-06-10T01:45:04.235Z (about 1 year ago)
- Language: HTML
- Size: 249 KB
- Stars: 47
- Watchers: 2
- Forks: 10
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
GeoIP-Scraper
=============
Turn your log files containing IP addresses into a pretty little represantation of traffic inflow like this:


How To Use
=========
(make sure you have python, ya know, since this runs on python)
First off, run ``pip install -r requirements.txt`` to install the external dependencies required.
Then simply run ``python geoip.py path/to/logfile.log``, this should generate a file under the web folder called data.json.
Simply place the web folder in a web-accessible area and open up geoip.html or attackmap.html.
You should be met with the pretty generated maps
The script also accepts input directly piped in to it, so for example if you rotate your logs you can simply do
``cat *log* | python geoip.py``
or feed in multiple files like so
``python geoip.py 1.log 2.log``
*The little ddos-attack style map requires the script to know your server's location, configure that in the attackmap.html page, edit the bit that says ``// Replace this with your own server's location``*