The FASTEST way to get Geo Information.
$ csirtg-geo 1.1.1.1
{'asn': 13335,
'asn_desc': 'Cloudflare, Inc.',
'cc': 'AU',
'latitude': -33.494,
'location': [143.2104, -33.494],
'longitude': 143.2104,
'timezone': 'Australia/Sydney'}
from csirtg_geo import get
from pprint import pprint
ts = get('1.1.1.1')
pprint(ts)
You must:
- install your native OS maxmind tools
- visit https://www.maxmind.com/en/home
- create an account and an api token
- update GeoIP.conf
pip install csirtg-geo
MaxMind provides a lot of great data FOR FREE. Consider a paid subscription!