加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 站长学院 > PHP教程 > 正文

php 批量查询搜狗sogou代码分享

发布时间:2020-12-12 20:53:30 所属栏目:PHP教程 来源:网络整理
导读:php 批量查询搜狗sogou的rank,非常不错,主要是使用了php的file_get_contents()方法。 @$txt = file_get_contents("list.txt" ); $arr = explode("rn",trim($txt)); if(count($txtarr)0){ exit('no site'); } foreach($arr as $v){ $sr=file_get_contents(

php 批量查询搜狗sogou的rank,非常不错,主要是使用了php的file_get_contents()方法。

@$txt = file_get_contents("list.txt" );
$arr = explode("rn",trim($txt));

if(count($txtarr)<0){
exit('no site');
}

foreach($arr as $v){
$sr=file_get_contents("http://rank.ie.sogou.com/sogourank.php?ur=http%3A%2F%2F{$v}%2F");
$sr=str_replace('sogourank=','',$sr);
if($sr>2){
echo $v."
n";
}else{
continue;
}
}

以上所述就是本文的全部内容了,希望大家能够喜欢。

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读