Abe Timmerman > WWW-CheckSite-0.020 > WWW::CheckSite

Download:
WWW-CheckSite-0.020.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  6
Open  2
View/Report Bugs
Module Version: 0.020   Source  

NAME ^

WWW::CheckSite - OO interface to an iterator that checks a website

SYNOPSIS ^

    use WWW::CheckSite;

    my $wcs = WWW::CheckSite->new(
        uri    => 'http://www.test-smoke.org/',
        prefix => 'tsorg',
        save   => 1,
    );

    $wcs->validate;

    $wcs->write_report;

Or using saved data (skip the real validation):

    my $wcs = WWW::CheckSite->load(
        uri    => 'http://www.test-smoke.org/',
        prefix => 'tsorg',
    );

    $wcs->write_report;

DESCRIPTION ^

This module implents a spider, that checks the pages on a website. For each page the links and images on that page are checked for availability. After that, the page is validated by W3.ORG.

When the spider is done, one can have a report in HTML written.

WARNING: Although the spider respects /robots.txt on the target site, the validator does not! Use this tool only on your own sites.

METHODS ^

WWW::CheckSite->new( %args )

Initialize a new instance. Options supported:

WWW::CheckSite->load( %args )

Initialize the object from datafile. Supported options:

$wcs->validate

The validate() method collects all the data.

$wcs->dump_links( $noskipped )

Return a list with all URLs encountered during site-traversal.

$wcs->write_report

Generate the reports.

$wcs->write_ht_report()

Load, fill the HTML::Template template and write the reports.

$wcs->write_tt_report()

Load, fill the Template Toolkit template and write the reports.

$wcs->_die;

Do a Carp::croak().

NO METHODS ^

create_report()

Load and fill the HTML::Template.

create_report_data()

Return a hash with all the data needed to fill both the HTML::Template and the Template Toolkit templates.

AUTHOR ^

Abe Timmerman, <abeltje@cpan.org>

BUGS ^

Please report any bugs or feature requests to bug-www-checksite@rt.cpan.org, or through the web interface at http://rt.cpan.org. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

COPYRIGHT & LICENSE ^

Copyright MMV Abe Timmerman, All Rights Reserved.

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

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

syntax highlighting: