Skip to content

Commit

Permalink
Update GeoLogonalyzer.py
Browse files Browse the repository at this point in the history
minor fixes
  • Loading branch information
davidpany authored Jul 23, 2024
1 parent ff327a4 commit 0c0cf8b
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions GeoLogonalyzer.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env python
#
#GeoLogonalyzer.py
#Version 1.10
#Version 1.11
# Geofeasibility calculator and datacenter cross reference utility
# customizable for various VPN log formats.
#
Expand All @@ -10,6 +10,7 @@
# 1.10
# - Runs in python3 - Thanks to Colby Lahaie!
# - Clarifies instructions for downloading GeoLite DBs with a free account
# 1.11 - Minor updates
#
#Description:
# GeoLogonalyzer will perform location and metadata lookups on source IP
Expand Down Expand Up @@ -120,16 +121,13 @@
import re # Might be used for custom line parsing
import argparse
from datetime import datetime
#import urllib
#import urllib2
from urllib.request import urlopen
import tarfile
import shutil
import os
import csv
import time
import unicodedata
#import pkg_resources
import importlib.metadata

# Imports that are not likely to be installed by default:
Expand All @@ -143,7 +141,7 @@
try:
from geoip import open_database
except ImportError:
sys.stderr.write("Please install the geoip dependency:\n\tpip install python-geoip\n")
sys.stderr.write("Please install the geoip dependency:\n\tpip install python-geoip-python3\n")
sys.exit()

try:
Expand Down

0 comments on commit 0c0cf8b

Please sign in to comment.