Git Product home page Git Product logo

ip2address's Introduction

使用python脚本查询ip归属地

一、使用方法:

终端执行命令:

python3 ip.py 112.1.173.185         #(1)(2)(3)(4)的综合查询,每天限制50次

python3 ip1.py 112.1.173.185        #(2)的查询,每天限制50次

python3 ip2.py 112.1.173.185        #(3)的查询,无次数限制

python3 ip3.py 112.1.173.185        #(1)的查询,无次数限制

python3 ip4.py 112.1.173.185        # 高德地图的查询,无次数限制

二、可以使用的IP归属地查询接口:

###(1)国内,免费支持ipv4及ipv6

curl https://ip.yinghualuo.cn/api?ip=2001:da8:bc:b376:69ef:ff24:ce6:9041
curl https://ip.zxinc.org/api.php?ip=2001:da8:bc:b376:69ef:ff24:ce6:9041

###(2)国内,仅免费支持ipv4,每天限制50次

curl https://freeapi.ipip.net/112.1.173.185

###(3)国外,免费支持ipv4及ipv6

curl http://ip-api.com/json/112.1.173.185      #英文
curl http://ip-api.com/json/218.192.3.42?lang=zh-CN       #中文

###(4)国内,免费支持ipv4

curl https://ip.cn/index.php?ip=112.1.173.185  (不使用,返回信息太复杂)

ip2address's People

Contributors

duter2016 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.