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 details)
Built Distribution
File details
Details for the file ip-area-0.0.1.tar.gz
.
File metadata
- Download URL: ip-area-0.0.1.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.40.0 CPython/3.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7c3352172b2eb4982bb96e9b9150e136273fc1ed7628636e7e30bbfb54dc5bcb |
|
MD5 | 84604ac4858d9466ea03763cb6dd4d51 |
|
BLAKE2b-256 | f9498b474acd575aae92a51482fd2d1ac0559d2e9f362574203ea915ee1eee34 |
File details
Details for the file ip_area-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: ip_area-0.0.1-py3-none-any.whl
- Upload date:
- Size: 5.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.40.0 CPython/3.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 14d975926b6e2844001659b3fe54f54ae3b8d05cd067a276b73b40daec38439b |
|
MD5 | fa8c30c82c7b742bab55661c312f23e2 |
|
BLAKE2b-256 | e96be05e40f4dedb932e8c9792f2ae7e15c5f89917104632de9ae3f2b6b6c7a1 |