Questions tagged [www-mechanize]

WWW::Mechanize is a Perl module for programmatic web browsing, used for automating interaction with websites.

Features include:

  • All HTTP methods
  • High-level hyperlink and HTML form support, without having to parse HTML yourself
  • SSL support
  • Automatic cookies
  • Custom HTTP headers
  • Automatic handling of redirections
  • Proxies
  • HTTP authentication

Mech supports performing a sequence of page fetches including following links and submitting forms. Each fetched page is parsed and its links and forms are extracted. A link or a form can be selected, form fields can be filled and the next page can be fetched. Mech also stores a history of the URLs you've visited, which can be queried and revisited.

See the home page for complete details.

366 questions
-1
votes
1 answer

Perl WWW:Mechanize Accessing data in a hash reference

I have a question I'm hoping you could help with? This is the last part I need help with in understanding hash references Code: my $content_lengths; # this is at the top foreach my $url ( # ... more stuff # compare if (…
yonetpkbji
  • 1,019
  • 2
  • 21
  • 35
-1
votes
1 answer

How can I remove a url from WWW::Mechanize::Cached?

I am using WWW::Mechanize::Cached together with Cache::FileCache, and I'd like to remove certain URLs from the cache sometimes but WWW::Mechanize::Cached doesn't have such an option. I've looked through the source code, and can see that the caching…
Matthew Lock
  • 13,144
  • 12
  • 92
  • 130
-1
votes
1 answer

Can't get WWW::Mechanize::Firefox to connect

Possible Duplicate: Can't create an instance of WWW:Mechanize::Firefox I have the following code, taken from the documenation of WWW::Mechanize::Firefox. #!/usr/bin/perl use WWW::Mechanize::Firefox; my $mech =…
Grigor
  • 4,139
  • 10
  • 41
  • 79
-2
votes
1 answer

Perl Web Navigation through URL

i'm trying to navigate through this site http://irl.worldfootball.net/ to get to player's pages. I want to be able to just take the player name variables i have and insert them in the url to get to each player's respective page, but i can't quite…
conorw89
  • 45
  • 1
  • 8
-2
votes
1 answer

Failing to establish a session while trying to log into a website and opening the logged in page

I am new to Perl, so as an exercise I have been trying to log in to a web page and open the logged-in page later from the command line. This is the code I wrote use HTTP::Cookies; use lib "/home/tivo/Desktop/exp/WWW-Mechanize-1.80/lib/WWW"; use…
-3
votes
1 answer

How can I use Perl's WWW::Mechanize to check if a web page has been updated?

I'm using WWW::Mechanize to retrieve a webpage. I need to check if the page has been updated and retreive information from it. How can I do this?
aks
  • 1,321
  • 5
  • 15
  • 27
1 2 3
24
25