Sign inSign up

aiaiduo/python-geoip2

By aiaiduo

Updated over 2 years ago

基于python 制作的geoip2的IP查询镜像

Image
Security
0

135

aiaiduo/python-geoip2 repository overview

基于python:3.12.3制作的geoip2的IP归属地查询镜像

程序主目录:/geoip2

使用方法

1、运行容器

docker run --name 容器名称 -itd python-geoip2

2、GeoLite2-City库更新

使用前建议更新GeoLite2-City的库,下载地址链接为: https://www.maxmind.com/en/accounts/175564/geoip/downloads

下载最新的库文件后复制到容器中 执行命令为: docker cp GeoLite2-City.mmdb 容器名称:/geoip2

查询IP:

docker exec -it 容器名称 python /geoip2/python-geoip2.py 要查询的ip地址

Tag summary

Content type

Image

Digest

sha256:0738500da

Size

398.4 MB

Last updated

over 2 years ago

docker pull aiaiduo/python-geoip2