Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fatelei/pyqqwry
Python Parse QQWry.
https://github.com/fatelei/pyqqwry
Last synced: about 1 month ago
JSON representation
Python Parse QQWry.
- Host: GitHub
- URL: https://github.com/fatelei/pyqqwry
- Owner: fatelei
- License: isc
- Created: 2016-01-25T10:14:05.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-01-31T06:05:16.000Z (almost 9 years ago)
- Last Synced: 2024-11-10T05:42:36.099Z (about 2 months ago)
- Language: Python
- Size: 4.51 MB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
======================================
pyqqwry 基于纯真ip库,查询ip对应的地点
======================================Python Parse QQWry, based `qqwry.pdf`_. You can get location by ip.
-------
API
-------* query
* str ip: IP address wanted to be queried.
* return a tuple, including country, province, city, isp.-------
Install
-------::
pip install pyqqwry
-----
Usage
-----::
>>> from pyqqwry.qqwry import QQWry
>>> qq_wry = QQWry(path)
>>> rst = qq_wry.query("59.117.128.17")
>>> print rst.. _qqwry.pdf: https://drive.google.com/file/d/0B0EvSfZXS15seVVBRTlUOVlUb2M/view?usp=sharing