codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  Perl script to enter keywords in google search home page...  abhipesit at 21:59 on Sunday, July 12, 2009
 

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... :)








CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums








Recent Forum Threads
• GET METHOD
• Re: windows service - web service - com
• Re: Storing data from HTML to Excel or TXT
• Re: Help totalReads=1 totalReads++=2 write totalReads 3 not 2
• Re: Using Javascript to create simple tabs
• Re: how to create forum using asp.net with c# language?
• Re: Problems in login using WWW::Mechanize
• reading excel sheet contents in html
• Re: where can i download javax.speech package


Recent Articles
ASP GetTempName
Decode and Encode UTF-8
ASP GetFile
ASP FolderExists
ASP FileExists
ASP OpenTextFile
ASP FilesystemObject
ASP CreateFolder
ASP CreateTextFile
Javascript Get Selected Text


© Copyright codetoad.com 2001-2010