根據IP獲取國家省市

github_zwl發表於2017-11-10

http://int.dpool.sina.com.cn/iplookup/iplookup.php?format=js&ip=132.168.32.1

或者:

$ip=132.168.32.1

curl -o d.txt "http://sfo01-hao123-web01.sfo01.baidu.com:8017/ip_region?ip="$ip

等提供了相應的介面

相關文章