gauravtechie has asked for the wisdom of the Perl Monks concerning the following question:
But the script terminate with No such field 'near' at /usr/local/share/perl/5.8.8/WWW/Mechanize.pm line 1227 But i can see near tag in url ?#!/usr/bin/perl use strict; use warnings; use WWW::Mechanize; my $queryString1 = 'restaurant'; my $queryString2 = 'New Delhi'; my $url = 'http://www.maps.google.com/maps?f=l&hl=en&geocode=&time=&da +te=&ttype=&view=text'; my $mechObject = WWW::Mechanize->new( autocheck => 1 ); $mechObject -> get($url); $mechObject->form_number(1); $mechObject->field("q", $queryString1); $mechObject->field("near", $queryString2); $mechObject->click("btnG"); print $mechObject -> content
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: www::mechanize google search
by erroneousBollock (Curate) on Nov 24, 2007 at 03:37 UTC | |
|
Re: www::mechanize google search
by pc88mxer (Vicar) on Nov 23, 2007 at 22:28 UTC |