巨量IP - API SDK - Python
Python >= 3.6
pip install juliang
前往 gitee代码托管地址 下载最新代码,解压
python setup.py install
Python 3.9以下的需要将 源码文件Juliang.py中的unquote(request.read(), "utf-8")方法替换为unquote(request.read().decode(), "utf-8")
import juliangip.Juliang as Juliang
import juliangip.common.DynamicGetIps as dgi
dynamic_trade_no = "1135123856516518735679"
dynamic_key = "eb9887f742sdfasdfahewrg1e4b71bfe040a5025b55e7"
def dynmaic_get_ips():
m = dgi.DynamicGetIps(dynamic_key, dynamic_trade_no, "10")
m.result_type = "json"
value = Juliang.dynamic_get_ips(m)
print(value)
if __name__ == '__main__':
dynmaic_get_ips()