Witajcie. Interesuje mnie uzyskanie liczby stron zindeksowanych w Yahoo!.
Znalazłem jakiś kod udostępniany przez Yahoo jednak nie wiem jak go wykorzystać.
Jest on tu: http://developer.yahoo.com/php/samples/req...uestCURLGET.txt
Proszę o pomoc.
$ch = curl_init('http://www.google.pl/search?hl=pl&q=site%3Astrona.pl&btnG=Szukaj&lr='); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $curl_exec = curl_exec($ch); curl_close($ch); $site = $matches[1];
$site2 = $result[0];
error_reporting(E_ALL); // The Yahoo! Web Services request $request = 'http://search.yahooapis.com/ImageSearchService/V1/imageSearch?appid=tu_appid&query=strona.pl&results=1'; // Initialize the session $session = curl_init($request); // Set curl options curl_setopt($session, CURLOPT_HEADER, true); curl_setopt($session, CURLOPT_RETURNTRANSFER, true); // Make the request $response = curl_exec($session); // Close the curl session curl_close($session); // Get HTTP Status code from the response $status_code = array(); // Get the XML from the response, bypassing the header if (!($xml = strstr($response, '<?xml'))) { $xml = null; } preg_match('/totalResultsAvailable="(\d)+"/',$xml, $matches); echo $matches[1];