Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

maxResults > 10 ???

0 views
Skip to first unread message

zuer...@gmail.com

unread,
Aug 19, 2006, 11:11:08 AM8/19/06
to
Hi Delphi users =)

How do I do for Google to look for more than 10 results?
Because the program only ten return up to now.

The Code of the request is soon lower:

tbWeb:
FResultWeb:=GetGoogleSearchPort.doGoogleSearch(KEY_GOOGLE,FText,0,10,false,'',false,'','UTF-8','UTF-8');

Thank you.

george

unread,
Aug 22, 2006, 3:26:44 PM8/22/06
to
try this
FResultWeb:=GetGoogleSearchPort.doGoogleSearch(KEY_GOOGLE,FText,11,10,false,'',false,'','UTF-8','UTF-8');

Regards,
George.

zuer...@gmail.com

unread,
Aug 23, 2006, 3:01:37 PM8/23/06
to
george

no, don't work ! =/

Help me plz!!!

Manfred

unread,
Aug 23, 2006, 3:17:38 PM8/23/06
to

zuer...@gmail.com wrote:
> no, don't work ! =/
Not very helpfull in diagnosing your problem ...

What George gave you


FResultWeb:=GetGoogleSearchPort.doGoogleSearch(KEY_GOOGLE,FText,11,10,false,'',false,'','UTF-8','UTF-8');

will return 10 results (result no. 12 to 21, start is zero based).
Your own call will return 10 results (no. 1 to 10).
So, what exactly is your problem?

Manfred

zuer...@gmail.com

unread,
Aug 23, 2006, 5:51:50 PM8/23/06
to
Manfred

I need he give me back all possible results
and not only 10

ZueRa

Manfred

unread,
Aug 24, 2006, 2:43:50 AM8/24/06
to
ZueRa,

You begin with start=0 and maxResults=10,
then (with pseudo-code):
A: get the response
process the response
if estimatedTotalResultsCount > endIndex
then (start=endindex; goto A)
finish

You migth also want to look at estimateIsExact and to
limit the total number of requests in processing the response.

Manfred

0 new messages