|
I have used yahoo api for web search, we could get the totalResults available of resultset field as return value of WebSearch method.
I observed the results are different compared to manual search, they are much much lesss, like if the manual result shows 64 results, webserach shows only 2.
following is the code snippet I used in VB.net
basedomain = Replace(url, "http://", "", 1)
basedomain = Mid(basedomain, 1, InStr(basedomain, "/") - 1)
url = "links:" & url & "-site:" & basedomain ' Url is used for search any keyword term
Dim yahoo As New YahooSearchService
Dim yahooresult As Yahoo.API.WebSearchResponse.ResultSet
yahooresult = yahoo.WebSearch("EP4vW1bV34Fh4RZ94Z.RPOwOKG4Roi5hN TXJAWY89t4EjQzUeVgTy27FkuPrzTeo0DZlPjlx", url, "all", 10, 1, "any", True, True, "en")
MsgBox(yahooresult.totalResultsAvailable)
nyahooresult = yahooresult.totalResultsAvailable
<removed. Create a signature>
Last edited by chrishirst; 01-20-2010 at 04:57 AM..
|