ip area info
Project description
IP Area
pypi: https://pypi.org/project/scrapy-util
github: https://github.com/mouday/scrapy-util
整合了ip地址信息的几个网站,依次作为备用:
- 淘宝IP地址库:http://ip.taobao.com/instructions
- 太平洋IP地址库:http://whois.pconline.com.cn/
- IP-API: https://ip-api.com/docs
- IP138:https://www.ip138.com/
install
pip install ip-area
Demo
# -*- coding: utf-8 -*-
from ip_area import get_info
print(get_info('39.97.246.76'))
"""
输出json对象
{
'country': '中国',
'region': '北京',
'city': '北京',
'isp': '阿里云'
}
"""
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ip-area-0.0.1.tar.gz
(4.0 kB
view hashes)