Parse ip address, return csv-file with IP, Country.
Input:
./assets/http.txt |
---|
95.132.132.76:2252 |
91.218.171.55 |
84.50.12.232:123 |
Output:
./ip_by_country.csv | |
---|---|
95.132.132.76:2252 | Украина |
91.218.171.55 | Таджикистан |
84.50.12.232:123 | Эстония |
git clone https://github.com/mikedigriz/geoip.git
cd geoip
pip3 install -r requriments.txt
python3 main.py
- You can download here actual Country database