wwwflatten - Command line interface to WWW::Flatten
wwwflatten [options] <starting URL>
-b, --basedir : output directory defalts to ./output -s, --target-single : set target uri to single page and assets -p, --target-path : set target uri under path and assets -d, --depth : max depth to crawl defaults to 10 -r, --max-retry : max re-try in case server is in-responsible defaults to 3 -c, --max-conn : max connection defaults to 1 -ch, --max-conn-per-host : max connection per host defaults to 1 -ma, --mojo-app : output as a mojolicious application -ck, --cookie : set cookie for every requests -v, --version : print the version of dancer being used -h, --help : print what you are currently reading
WWW-Flatten flattens web pages recursively with assets. This crawling covers not only single page but also beyond the links.
wwwflatten http://github.com/ wwwflatten --depth=2 -max-conn=4 http://example.com/ wwwflatten --target-single http://example.com/only-this-page.html wwwflatten --target-path http://example.com/under-this-path/ wwwflatten --mojo-app http://example.com/
To install WWW::Flatten, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WWW::Flatten
CPAN shell
perl -MCPAN -e shell install WWW::Flatten
For more information on module installation, please visit the detailed CPAN module installation guide.