https://github.com/lwzm/cz-ip
chunzhen cz88 ip ipaddress ipv4 location
Last synced: 7 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/lwzm/cz-ip
- Owner: lwzm
- License: mit
- Created: 2018-11-21T02:53:44.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-11-22T03:28:01.000Z (almost 7 years ago)
- Last Synced: 2025-02-10T15:51:08.245Z (8 months ago)
- Topics: chunzhen, cz88, ip, ipaddress, ipv4, location
- Language: Python
- Size: 14.1 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 查 ip 所在位置, 查找速度还行(微秒级), 数据来自纯真数据库.
### Install
```
pip install cz-ip
```### Usage
```
>>> import cz_ip
>>> cz_ip.locate("8.8.8.8")
'美国 加利福尼亚州圣克拉拉县山景市谷歌公司DNS服务器'
``````
$ python -m cz_ip
114.114.114.114
114.114.114.114 江苏省南京市 南京信风网络科技有限公司GreatbitDNS服务器
``````
$ cat ips.txt
114.114.114.114
172.16.16.16
10.0.0.1
10.0.0.2$ python -m cz_ip