in reply to REST google search issues?
OK. It gets a little tricky here. start => $start doesn't do anything except return an index of 0. So, I figured the problem was indeed the "start' value. As I understand it now, the start value is something like this:#!/usr/bin/perl use strict; use warnings; use REST::Google; REST::Google->service('http://ajax.googleapis.com/ajax/services/search +/web'); REST::Google->http_referer('http://example.com'); my $res = REST::Google->new( q => 'perl regex', start => 4, ); die "response status failure" if $res->responseStatus != 200; my $data = $res->responseData; use Data::Dumper::Concise; warn Dumper ( $data );
0 = 0 1 = 4 2 = 8 3 = 12 4 = 16
As it stands, your start value is 0, so it returns 0. If you want the index for the 4th page, then
It will give you an index for the fourth page.my $res = REST::Google->new( q = 'perl regex' start => 16, );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: REST google search issues?
by Anonymous Monk on Jan 07, 2010 at 14:58 UTC | |
|
Re^2: REST google search issues?
by Anonymous Monk on Jan 07, 2010 at 15:00 UTC | |
by Khen1950fx (Canon) on Jan 07, 2010 at 18:47 UTC |