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, );
In reply to Re: REST google search issues?
by Khen1950fx
in thread REST google search issues?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |