Fetch the repository succeeded.
查询我的 IP 地址、归属地、设备类型、操作系统、浏览器版本、屏幕分辨率、经纬度、地理位置等。
GET:https://ip.jackjyq.com/text
或: curl 'https://ip.jackjyq.com/'
GET:https://ip.jackjyq.com/json
或: curl 'https://ip.jackjyq.com/' -H 'Content-Type: application/json'
POST: https://ip.jackjyq.com/ips
请求:
{
"ips": ["127.0.0.1", "114.114.114.114", "8.8.8.8"],
"database": "both"
}
database 选项:
返回:
{
"127.0.0.1": {
"ip": "127.0.0.1",
"country": null,
"region": null,
"province": null,
"city": "内网IP",
"isp": "内网IP",
"database_name": "ip2region",
"database_href": "https://gitee.com/lionsoul/ip2region/"
},
"114.114.114.114": {
"ip": "114.114.114.114",
"country": "中国",
"region": null,
"province": "江苏省",
"city": "南京市",
"isp": null,
"database_name": "ip2region",
"database_href": "https://gitee.com/lionsoul/ip2region/"
},
"8.8.8.8": {
"ip": "8.8.8.8",
"country": "美国",
"region": null,
"province": "加州",
"city": "洛杉矶",
"isp": null,
"database_name": "GeoLite2",
"database_href": "https://www.maxmind.com/"
}
}
# 配置虚拟环境
python3.10 -m venv venv
pip install -r requirements.txt
# 下载 IP 数据库
chmod +x download_ip_data.sh
./download_ip_data.sh
DEBUG=True python main.py runserver
# 或
gunicorn --workers 3 --worker-class=gevent main
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。