Wallflower::Util - Utility functions for Wallflower
version 1.004
use Wallflower; use Wallflower::Util qw( links_from ); # use Wallflower to get a response array my $wf = Wallflower->new( application => $app, destination => $dir ); my $response = $wf->get($url); # obtain links to resources linked from the document my @links = links_from( $response, $url );
This module provides methods to extract links from the files produced by Wallflower's get() method.
get()
Returns all links found in the response body, depending on its content type.
$response is the array reference returned by Wallflower's get() method. $url is the base URL for resolving relative links, i.e. the original argument to get().
$response
$url
Philippe Bruhat (BooK) <book@cpan.org>
This software is copyright (c) 2012 by Philippe Bruhat (BooK).
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install App::Wallflower, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::Wallflower
CPAN shell
perl -MCPAN -e shell install App::Wallflower
For more information on module installation, please visit the detailed CPAN module installation guide.