in reply to Re^2: Downloading PHP-generated images using the LWP::UserAgent and WWW::Mechanize modules
in thread Downloading PHP-generated images using the LWP::UserAgent and WWW::Mechanize modules
You should probably use WWW::Mechanize's find_image() or find_all_images() method:
update: you probably also don't need both an LWP::UserAgent and a WWW::Mechanize object, since WWW::Mechanize is a subclass of LWP::UserAgent. In fact, chances are, it will work better with just one WWW::Mechanize object.for my $img ($www->find_all_images()) { $www->mirror($img->url_abs()); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Downloading PHP-generated images using the LWP::UserAgent and WWW::Mechanize modules
by Anonymous Monk on Nov 27, 2009 at 05:34 UTC |