Why am I getting AttributeError: module 'geoip2' has no attribute 'databse'

286 views Asked by At

This is the code that I was executing and this is even the example that was given in the documentation of the geoip2 made by maxmind can anyone tell me what was the problem

import geoip2.database

with geoip2.databse.Reader('/path/to/GeoLite-ASN.mmdb') as reader:

response = reader.asn('203.0.113.0')

response.autonomous_system_organization
0

There are 0 answers