当前位置 : 主页 > 网络编程 > PHP >

php 批量查询搜狗sogou

来源:互联网 收集:自由互联 发布时间:2021-07-03
php批量查询搜狗sogou http://blog.ppsql.net/post-1858.html 1. [代码] [PHP]代码 ?phpdate_default_timezone_set('Asia/Shanghai');header('Content-Type: text/html; charset=utf-8');@$txt = file_get_contents("list.txt" );$arr = explode("\
php 批量查询搜狗sogou

http://blog.ppsql.net/post-1858.html

1. [代码][PHP]代码    

<?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;	
	}
}
网友评论