0

Indexed Pages

Not sure if this is the right place, but I'll ask anyways.
I want to pull a result showing number of pages indexed by Yahoo for a site. I'm using the following in php (and config file has application ID, addid):

//yahoo results
$url1 = "http://siteexplorer.search.yahoo.com/advsearch?ei=UTF-8&p=http%3A%2F%2F".urlencode(stripslashes($search))."&searchbwm=Explore+URL";
$url = "http://search.yahooapis.com/SiteExplorerService/V1/pageData?appid='.$addid.'&query=".urlencode(stripslashes($search))."&results=1";
$contents_b = doRequest($url);
if(preg_match('%totalResultsAvailable="(.*?)"%sim', $contents_b, $yahoo_regs)){ $yahoo_results = trim($yahoo_regs[1]); }else{ $yahoo_results = "0"; }
$display .= '<td><a target="_blank" href="'.$url1.'">'.$yahoo_results.'</a></td>'."\n";
$csv_data .= $yahoo_results."|";

I still get no results. Shows 0 pages indexed, even if I input yahoo.com as site to list number of indexed pages for.

Any ideas?
Thanks,
Dawn

by
0 Replies

Recent Posts

in YQL