Hello and thanks for this wonderful package.
I know I can use this:
with geoip2.database.Reader('/path/to/GeoLite2-ASN.mmdb') as reader:
response = reader.asn('1.128.0.0')
response.autonomous_system_organization
to get the autonomous_system_organization for a given IP.
Something I was not able to figure out is whether this package can generate all the possible IPs for each autonomous_system_organization in the maxmind ASN database. For instance, can we get the IPs by iterating over the IP networks in CIDR format that are in the data? Is there a method for that?
Thanks!
Hello and thanks for this wonderful package.
I know I can use this:
to get the
autonomous_system_organizationfor a given IP.Something I was not able to figure out is whether this package can generate all the possible
IPs for eachautonomous_system_organizationin themaxmindASN database. For instance, can we get the IPs by iterating over the IP networks inCIDRformat that are in the data? Is there amethodfor that?Thanks!