English readme • 简体中文 readme • 正體中文 readme • Lengua española readme • Deutsche readme • Svenska readme • 한국어 readme • Français readme • हिन्दी readme • Português readme • Italian readme • Русский readme • Indonesian readme • فارسی readme • عربي readme • Türkçe readme • Polskie readme
maps 文件夹(如果不存在,则在运行时自动创建)。通过 PyPI 安装 IPMap,在终端/命令行中执行以下命令:
pip install ipmap
通过 GitHub 源码仓库安装 IPMap,执行以下命令:
pip install git+https://github.com/rly0nheart/ipmap.git
# 安装 poetry
pip install poetry
# 克隆仓库
git clone https://github.com/rly0nheart/ipmap
# 进入 ipmap 目录
cd ipmap
# 构建 wheel 文件
poetry build
# 安装 wheel 文件(Linux)
pip install dist/*.whl
# 安装 wheel 文件(Windows)
pip install .\dist\generated-wheel-file-name.whl
查看使用帮助,请执行:
ipmap --help
预期输出如下:
usage:
Geolocate IP Address(es) (with an interactive map)
--------------------------------------------------
ipmap <ip> --map
Open Google Earth on the given coordinates
--------------------------------------------
ipmap <ip> --earth
Lookup IP Address(es) (same as map but without an interactive map)
------------------------------------------------------------------
ipmap <ip> --lookup
IPMap (IP Mapper) — by Richard Mwewa (https://about.me/rly0nheart)
positional arguments:
ip target ip address
options:
-h, --help show this help message and exit
-e, --earth Open Google Earth on the location of a given ip
-l, --lookup Lookup an ip (like --map, but without an interactive
map)
-m, --map Geolocate an ip (with an interactive map)
-o OUTPUT, --output OUTPUT
map output name (default ipmap)
-v, --version show program's version number and exit
A cross-platform easy-to-use ip geolocation & mapping tool.
你也可以通过
ip参数传入一个包含IP地址的文件。在这种情况下,IPMap 将逐行读取该文件中的每个IP地址。
如果你想将此项目的 README 翻译成其他语言,或者改进通过 Google Translate 翻译的文件,请提交包含你翻译的 Pull Request,我将非常乐意将其加入项目 :)