|
hi... i want a script that enters the keyword in google search page and then displays the output(in any form)...
m using the following code....
#!/usr/bin/perl
# Include the WWW::Mechanize module
use WWW::Mechanize;
$url = "http://www.google.com";
# Create a new instance of WWW::Mechanize
my $mechanize = WWW::Mechanize->new(autocheck => 1);
# Retrieve the page
$mechanize->get($url);
# Mention the keyword to be searched
my $keyword='perl';
now how do i enter the keywords into the google page.....
i tried with $mechanize->forms but its not working....
someone pls help me out...
Any kind of help will be truly appreciated... :)
|
|
|
|
|
|
|
// |