0

ここで立ち往生しているすべての人に、特定のドメインのバックリンクを持つすべてのドメインのリストが必要です。誰でもこれを手伝ってもらえますか?すべてのバックリンクを取得するためのリンクまたは API プロシージャを提供してください。私は alexa で検索しましたが、彼らはリンクインのバックリンクの詳細を提供しましたが、そのための API リクエストはありませんでした。そのドメインのすべてのバックリンク数を持っているドメインのランクを取得するためのphpスクリプトを取得しましたが、同時にすべてのドメイン名が必要です。

   $url="msn.com";
$xml = simplexml_load_file('http://data.alexa.com/data?cli=10&dat=snbamz&url='.$url);
$rank=(int)$xml->SD[1]->POPULARITY->attributes()->TEXT;
$web=(string)$xml->SD[1]->POPULARITY->attributes()->URL;
$backlink=(int)$xml->SD[0]->LINKSIN->attributes()->NUM;
echo $web." has Alexa Rank ".$rank." has backlink: ".$backlink;
4

1 に答える 1

1

これがあなたに少しでも役立つことを願っています.. インターネットの世界から見つけました。

function check_back_link($remote_url, $your_link) {
  $match_pattern = preg_quote(rtrim($your_link, "/"), "/"); 
  $found = false;
  if($handle = @fopen($remote_url, "r")){
    while(!feof($handle)){
      $part = fread($handle, 1024);
      if(preg_match("/<a(.*)href=[\"']".$match_pattern."(\/?)[\"'](.*)>(.*)<\/a>/", $part)){
        $found = true;
        break;
      }
    }
    fclose($handle);
  }
  return $found;
}

使用中の関数の例。

if(check_back_link('http://www.google.com','http://www.yahoo.com')){
  echo 'link found';
}else{
  echo 'link NOT found';
};
// this prints 'link NOT found', unfortunately...

MSN で更新

function msn_backs($url){ 
    $site = fopen('http://search.live.com/results.aspx?q=link%3A'.urlencode($url),'r'); 
    while($cont = fread($site,1024657)){ 
        $total .= $cont; 
    } 
    fclose($site); 
    $match_expression = '/<h5>Page 1 of (.*) results<\/h5>/Us'; 
    preg_match($match_expression,$total,$matches); 
    return $matches[1]; 
}
于 2013-03-27T14:27:07.353 に答える