新浪 ip 地址库
来源:互联网 发布:oracle sql调优技巧 编辑:程序博客网 时间:2024/05/16 17:33
API地址:http://int.dpool.sina.com.cn/iplookup/iplookup.php
function
get_location(
$ip
){
$curl
= curl_init();
curl_setopt(
$curl
,CURLOPT_URL,
"http://int.dpool.sina.com.cn/iplookup/iplookup.php?format=json&ip="
.
$ip
);
$location
= curl_exec(
$curl
);
$location
= json_decode(
$location
);
if
(
$location
===FALSE)
return
""
;
return
empty
(
$location
->desc) ?
$location
->province.
$location
->city.
$location
->district.
$location
->isp :
$location
->desc;
}
update:
2012年又收集到一些ip地址转换的接口,其中发现腾讯的api已经挂了。
腾讯:http://fw.qq.com/ipaddress
新浪的IP地址查询接口:http://int.dpool.sina.com.cn/iplookup/iplookup.php?format=js
新浪多地域测试方法:http://int.dpool.sina.com.cn/iplookup/iplookup.php?format=js&ip=12.130.132.30
搜狐IP地址查询接口(默认GBK):http://pv.sohu.com/cityjson
搜狐IP地址查询接口(可设置编码):http://pv.sohu.com/cityjson?ie=utf-8
搜狐另外的IP地址查询接口:http://txt.go.sohu.com/ip/soip
网易有道IP地址API接口:http://www.youdao.com/smartresult-xml/search.s?type=ip&q=115.156.238.114
API地址:http://int.dpool.sina.com.cn/iplookup/iplookup.php
function
get_location(
$ip
){
$curl
= curl_init();
curl_setopt(
$curl
,CURLOPT_URL,
"http://int.dpool.sina.com.cn/iplookup/iplookup.php?format=json&ip="
.
$ip
);
$location
= curl_exec(
$curl
);
$location
= json_decode(
$location
);
if
(
$location
===FALSE)
return
""
;
return
empty
(
$location
->desc) ?
$location
->province.
$location
->city.
$location
->district.
$location
->isp :
$location
->desc;
}
update:
2012年又收集到一些ip地址转换的接口,其中发现腾讯的api已经挂了。
腾讯:http://fw.qq.com/ipaddress
新浪的IP地址查询接口:http://int.dpool.sina.com.cn/iplookup/iplookup.php?format=js
新浪多地域测试方法:http://int.dpool.sina.com.cn/iplookup/iplookup.php?format=js&ip=12.130.132.30
搜狐IP地址查询接口(默认GBK):http://pv.sohu.com/cityjson
搜狐IP地址查询接口(可设置编码):http://pv.sohu.com/cityjson?ie=utf-8
搜狐另外的IP地址查询接口:http://txt.go.sohu.com/ip/soip
网易有道IP地址API接口:http://www.youdao.com/smartresult-xml/search.s?type=ip&q=115.156.238.114
- 新浪IP库地址
- 新浪 ip 地址库
- 新浪IP库地址
- 根据新浪IP查询,创建自己的IP地址库
- 腾讯/新浪/搜狐IP地址API
- 通过新浪接口当前IP地址所在城市
- 调用新浪IP接口,获取地址信息
- 调用新浪接口查询IP地址
- 根据IP定位所在城市(HTML,js,新浪IP地址库)
- 根据新浪IP库地址,跳到不同城市的二级页面
- 新浪的一个IP库
- 根据IP地址获取所在城市【通过新浪接口】
- 新浪接口之PHP根据IP地址获取所在城市
- PHP利用新浪IP接口,来实现IP地址定位具体城市
- IP地址库解析
- ip地址库分析
- IP地址库
- 腾讯新浪通过IP地址获取当前地理位置(省份)的接口
- leetcode 刷题之路 56 Subsets (非递归解法)
- 14、B树、B+树的概念及用途
- android应用开发中的图片缓存系统
- krpano 教程 - display 标签中文说明
- 【ORACLE】AWR报告的生成和简单分析方法
- 新浪 ip 地址库
- hdu-2814-Interesting Fibonacci-斐波那契循环节
- 关于 xcode5 每次修改代码,都要先clean,重新编译才有效的解决方法汇总
- 获取任务栏所有正在运行程序
- quartus时序分析文档理解与翻译(2) ——一个设置约束的例程
- IP地址API
- C++解析xml--tinyxml--DOM模型
- PHP源码加密
- mvc Razor 视图中找不到 ViewBag的定义