为什么我收到 AttributeError: module 'geoip2'没有属性“databse”;
文档中给出的示例
制作的Geoip2
这是我正在执行的代码,这甚至是MaxMind /geolite-asn.mmdb')作为读者:
response = reader.asn('203.0.113.0')
response.autonomous_system_organization
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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论