Skip Menu |

This queue is for tickets about the Google-Search CPAN distribution.

Report information
The Basics
Id: 47461
Status: open
Priority: 0/
Queue: Google-Search

People
Owner: Nobody in particular
Requestors: naiman [...] math.jct.ac.il
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



CC: Robert Krimen <robertkrimen [...] gmail.com>
Subject: repeated results
Date: Tue, 30 Jun 2009 17:18:30 +0200
To: bug-Google-Search [...] rt.cpan.org
From: Aaron Naiman <naiman [...] math.jct.ac.il>
Dear Robert, Hi. I seem to be getting repeated results. I am using Google::Search (thanx again!) for results, with the search string (with double-quotes): "Andrea Heutschi" I get back 60 results, but the first 4 are identical to the next 4 and the next 4, etc., all the way to 15 copies of the same 4 results. I have not seen this happen before, and it *seems* to perhaps be due to the fact that the Google resultsSize is 4. BTW, this happens whether I iterate through with next(), or use all() from the start. Please note that using REST::Google::Search, the estimatedResultCount is indeed 4. One last thing, I get *slightly* different results -- 60, vs. 61 or 62 results, if I invoke next(): $result = $result->next; as in your code example at the top, or: $result = $searcht->next; as in the function definition further down on the web page. Why is there a difference, and which is the correct interface? adTHANXvance! Aharon -- Aaron ("Aharon") Naiman Jerusalem College of Technology--Machon Lev naiman@math.jct.ac.il http://math.jct.ac.il/~naiman <http://math.jct.ac.il/%7Enaiman>
On Tue Jun 30 11:19:20 2009, naiman@math.jct.ac.il wrote: Show quoted text
> Dear Robert, > > Hi. I seem to be getting repeated results. > > I am using Google::Search (thanx again!) for results, with the search
string Show quoted text
> (with double-quotes): > > "Andrea Heutschi" > > I get back 60 results, but the first 4 are identical to the next 4 and the > next 4, etc., all the way to 15 copies of the same 4 results. > > I have not seen this happen before, and it *seems* to perhaps be due
to the Show quoted text
> fact that the Google resultsSize is 4. > > BTW, this happens whether I iterate through with next(), or use all() from > the start. > > Please note that using REST::Google::Search, the estimatedResultCount is > indeed 4. > > One last thing, I get *slightly* different results -- 60, vs. 61 or 62 > results, if I invoke next(): > > $result = $result->next; > > as in your code example at the top, or: > > $result = $searcht->next; > > as in the function definition further down on the web page. > > Why is there a difference, and which is the correct interface? > > adTHANXvance! > > Aharon >
You can safely ignore rsz, that just indicates how many results *per page* that Google returns back. It has nothing to do with how many total results are returned. I can't seem to reproduce your repeated results. I get back a lot of similar-looking facebook URLs, but they are still different.
This API is deprecated by Google: "Note: The Google Web Search API has been officially deprecated as of November 1, 2010. It will continue to work as per our deprecation policy, but the number of requests you may make per day will be limited. Therefore, we encourage you to move to the new Custom Search API." https://developers.google.com/web-search/docs/#fonje_snippets
Subject: Re: [rt.cpan.org #47461] repeated results
Date: Wed, 20 Jun 2012 22:50:22 +0300
To: bug-Google-Search [...] rt.cpan.org
From: Aaron Naiman <naiman [...] jct.ac.il>
Dear Robert, Thanx for the heads-up -- and for remembering! :-) I have in fact moved to the new Custom Search API long ago, as to keep with their requested policy. ATB, Aaron On Wed, Jun 20, 2012 at 10:38 PM, Robert Krimen via RT < bug-Google-Search@rt.cpan.org> wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=47461 > > > This API is deprecated by Google: > > "Note: The Google Web Search API has been officially deprecated as of > November 1, 2010. It will continue to work as per our deprecation > policy, but the number of requests you may make per day will be limited. > Therefore, we encourage you to move to the new Custom Search API." > > https://developers.google.com/web-search/docs/#fonje_snippets >
-- Aaron ("Aharon") Naiman Jerusalem College of Technology--Machon Lev naiman@jct.ac.il http://jct.ac.il/~naiman