Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^9: saveResources_future and tab in WWW::Mechanize::Chrome

by 1nelly1 (Sexton)
on May 14, 2020 at 07:48 UTC ( [id://11116775]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $file_map = $mech->saveResources_future(
        target_file => 'this_page.html',
        target_dir  => 'this_page_files/',
        wanted      => sub { $_[0]->{url} =~ m!^https?:!i },
    )->get();
    
  2. or download this
    $names{ $resource->{url} } ||= File::Spec->catfile( $target_dir, $name
    +s{ $resource->{url} });
    my $target = $names{ $resource->{url} }
    ...
    binmode $fh;
    print $fh $resource->{content};
    CORE::close( $fh );
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11116775]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (5)
As of 2024-03-29 07:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found