IP search based on 17mon.cn, the best IP database for china.
Source: http://tool.17mon.cn
$ pip install 17monip
>>> import IP
>>> IP.find("www.baidu.com")
'**\t浙江\t杭州'
>>> IP.find("127.0.0.1")
'本机地址\t本机地址'
$ iploc ele.me
** 北京
$ iploc aliyun.com
** 浙江 杭州