zhzhang

 

IP地址库下载地址:

https://www.ipip.net/product/ip.html

 

使用方式(Python):

https://github.com/ipipdotnet/datx-python

 

import datx

c = datx.City("ipdata_new.datx")
ip = \'183.156.1.109\'

print(c.find(ip))

 输出结果:

[\'中国\', \'浙江\', \'杭州\', \'\']

 

谢谢!

分类:

技术点:

相关文章:

  • 2022-12-23
  • 2022-01-24
  • 2022-12-23
  • 2021-08-13
  • 2021-12-02
  • 2021-12-27
  • 2022-02-18
  • 2021-12-26
猜你喜欢
  • 2022-02-17
  • 2021-09-22
  • 2022-12-23
  • 2022-12-23
  • 2021-11-10
  • 2021-10-01
相关资源
相似解决方案