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
•  Perl script to enter keywords in google search home page...
•  advertising module
•  Need to extract count-down from javascript.
•  getting time independent of system time in Sun Solaries
•  Regular Expression Query Replace -- Twice Wrongly
•  Processing MS Office documents with Java
•  Re: help!
•  Re: Can javascript preload swf files?
•  ADODB.Recordset error (0x800A0CB3)


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-2009