#!/usr/bin/perl use strict; use warnings; use WWW::Mechanize; use HTTP::Cookies; use Data::Dumper; my $url = 'http://search.cpan.org'; my $searchstring = 'mechanize'; my $mech = WWW::Mechanize->new(); $mech->get( $url ); if( not $mech->success() ) { print "Could not retrieve page:\n"; print $mech->content(); die; } print "all forms:\n", Dumper( [ $mech->forms ] ); $mech->submit_form( form_number => 1, fields => { query => $searchstring, } ); print "content:\n", $mech->content(); #### perl test.pl all forms: $VAR1 = [ bless( { 'enctype' => 'application/x-www-form-urlencoded', 'action' => bless( do{\(my $o = 'http://search.cpan.org/search')}, 'URI::http' ), 'method' => 'GET', 'attr' => { 'name' => 'f', 'class' => 'searchbox', 'method' => 'get' }, 'inputs' => [ bless( { 'value_name' => 'in', 'value' => '', 'name' => 'query', 'type' => 'text', 'size' => '35' }, 'HTML::Form::TextInput' ), bless( { 'current' => 0, 'menu' => [ { 'seen' => 1, 'value' => 'all', 'name' => 'All' }, { 'value' => 'module', 'name' => 'Modules' }, { 'value' => 'dist', 'name' => 'Distributions' }, { 'value' => 'author', 'name' => 'Authors' } ], 'name' => 'mode', 'type' => 'option' }, 'HTML::Form::ListInput' ), bless( { 'value_name' => '', 'value' => 'CPAN Search', 'type' => 'submit' }, 'HTML::Form::SubmitInput' ) ] }, 'HTML::Form' ) ]; content: search.cpan.org: The CPAN Search Site

Results 1 - 10 of 1643 Found
1 · 2 · 3 · 4 · 5 · 6 · Next >> Page Size: 10  20  50  100 

Win32::IE::Mechanize
Like "the mech" but with IE as user-agent
Win32-IE-Mechanize-0.008 - 09 Jan 2005 - Abe Timmerman

WWW::Mechanize::Shell
An interactive shell for WWW::Mechanize
WWW-Mechanize-Shell-0.36 - 04 Dec 2004 - Max Maischein

WWW::Mechanize::Sleepy
A Sleepy Mechanize Agent
WWW-Mechanize-Sleepy-0.5 - 30 Aug 2003 - Ed Summers

WWW::Mechanize::Timed
Time Mechanize requests
WWW-Mechanize-Timed-0.42 - 23 Jan 2004 - Leon Brocard

Bundle::WWW::Mechanize::Shell
install all optional modules for WWW::Mechanize::Shell
Bundle-WWW-Mechanize-Shell-0.29 - 03 Aug 2003 - Max Maischein

WWW::Mechanize::Cached
Cache response to be polite
WWW-Mechanize-Cached-1.32 - 11 Apr 2004 - Andy Lester

WWW::Mechanize::FormFiller
framework to automate HTML forms
WWW-Mechanize-FormFiller-0.05 - 09 Jun 2003 - Max Maischein

Test::WWW::Mechanize::Catalyst
Test-WWW-Mechanize-Catalyst-0.29 - 17 Mar 2005 - Leon Brocard

WWW::Yahoo::Groups::Mechanize
Control WWW::Mechanize for WYG.
WWW-Yahoo-Groups-1.91 - 01 Dec 2003 - Iain Truskett (see Andy Lester)

WWW::Mechanize::Frames
WWW-Mechanize-Frames-0.03 - 17 Mar 2005 - Nick Stoianov

1 · 2 · 3 · 4 · 5 · 6 · Next >>