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': '阿里云'
}
"""
Metadata
Release files for ip-area 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ip-area-0.0.1.tar.gz | 4.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ip_area-0.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.6 kB
Release files / ip-area-0.0.1.tar.gz
| Download URL | ip-area-0.0.1.tar.gz |
|---|---|
| Size | 4.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7c3352172b2eb4982bb96e9b9150e136273fc1ed7628636e7e30bbfb54dc5bcb
|
|
BLAKE2b-256 checksum How to use checksums |
f9498b474acd575aae92a51482fd2d1ac0559d2e9f362574203ea915ee1eee34
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / ip_area-0.0.1-py3-none-any.whl
| Download URL | ip_area-0.0.1-py3-none-any.whl |
|---|---|
| Size | 5.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
14d975926b6e2844001659b3fe54f54ae3b8d05cd067a276b73b40daec38439b
|
|
BLAKE2b-256 checksum How to use checksums |
e96be05e40f4dedb932e8c9792f2ae7e15c5f89917104632de9ae3f2b6b6c7a1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|