PHP获取百度相关搜索和原创程度

PHP获取百度相关搜索和原创程度
获取原创程度是get_em_times,数值越高文本长度越长越不原创。
用于采集项目的搜索引擎优化

class baidu {

public static function build_request_uri($words){

$words = urlencode(Text::convert_encoding($words,GBK,UTF-8));

return /s?wd=.$words;

}

public static function get_relate_search($words){

$content = self::get_content($words);

if(preg_match(/

(((?!
).)*)

猜你喜欢