Lookup location via ip using cz ip


License
BSD-3-Clause
Install
pip install pyqqwry==1.1.1

Documentation

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