Skip to content

Latest commit

 

History

History
68 lines (39 loc) · 1.71 KB

readme.md

File metadata and controls

68 lines (39 loc) · 1.71 KB

WWW::Flatten

This software is considered to be alpha quality and isn't recommended for regular usage.

WWW::Flatten is a web crawling tool for freezing pages into standalone. I believe this works better than wget or "Saving as, complete" in browsers.

  • Covers assets beyond CSSs.
  • Publish-ready name of files.

INSTALLATION

$ cpanm WWW::Flatten

USAGE

wwwflatten command is available. You can brows out directory localy or upload it to web servers as is.

$ wwwflatten --basedir ./out/ http://github.com/

Or the following example generates mojolicious app at once.

$ wwwflatten --mojo-app --basedir ./out/ http://github.com/
$ ./out/myapp.pl daemon

Then you can see the archive in browser with port 3000

http://127.0.0.1:3000/

The app is also portable so it can be deployed to app servers.

See also Command line API

CLASS USAGE

This tool is powerd by a class based perl module included in the repository. With the module, you can easily make a custom ruling crawler for your demand.

See also WWW::Flatten API

REPOSITORY

https://github.com/jamadam/WWW-Flatten

SEE ALSO

https://github.com/jamadam/WWW-Crawler-Mojo

COPYRIGHT AND LICENSE

Copyright (c) jamadam

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.