php 批量查询搜狗sogou的rank,非常不错,主要是使用了php的file_get_contents()方法。
<?php
date_default_timezone_set('Asia/Shanghai');
header('Content-Type: text/html; charset=utf-8');
@$txt = file_get_contents("list.txt" );
$arr = explode("\r\n" , 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."<br />\n";
}else{
continue;
}
}
以上所述就是本文的全部内容了,希望大家能够喜欢。
最后
以上就是可靠汉堡最近收集整理的关于php 批量查询搜狗sogou代码分享的全部内容,更多相关php内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复