in reply to Re^10: saveResources_future and tab in WWW::Mechanize::Chrome
in thread saveResources_future and tab in WWW::Mechanize::Chrome
Ok. Here is my code:
use strict; use warnings; use Log::Log4perl qw(:easy); use WWW::Mechanize::Chrome; Log::Log4perl->easy_init($ERROR); my $mech = WWW::Mechanize::Chrome->new(); $mech->get('https://metacpan.org/'); my $file_map = $mech->saveResources_future( target_file => 'this_page.html', target_dir => 'this_page_files/', wanted => sub { $_[0]->{url} =~ m!^https?:!i }, )->get();
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^12: saveResources_future and tab in WWW::Mechanize::Chrome
by Corion (Patriarch) on May 14, 2020 at 15:24 UTC | |
by 1nelly1 (Sexton) on May 14, 2020 at 19:54 UTC |