NAME
WWW::Monitor::Task - A Task class for monitoring single web page against cached version.
VERSION
Version 0.1
Description
This class responsible for tracking a single web page and report changes. This class should be considered as private asset of WWW::Monitor. For details please refer to <WWW::Monitor>
EXPORT
FUNCTIONS
new
A constructor.
run ( mechanize, carrier, <cache>)
Executes Task. Parameters:
mechanize - Web mechanize object.
WWW::Monitor::Task assumes that the given object implements or inherits WWW::mechnize abstraction. See http://search.cpan.org/~petdance/WWW-Mechanize-1.20/lib/WWW/Mechanize.pm.
carrier- Object that that will conduct the notification See WWW::Monitor for details
cache - optional - A cache class.
be_notified
(Private method) Tests if a page is tested. If yes notification call back is being called.
format_html
(Private method) Return a textual version of an html.
extract_text
(Private Method). Extract text from given set of pages.
get_hash_cache_key
(Private method) Return a hash key that stores information about the whole visibe part URL.
get_cache_hash
(Private Method) Returns all urls that was last cached. return true if the url was previously hased.
store_validity
(Private method) Store current time in the main hash key
store_cache_hash
Store General information of a web adderess. This includes all frames and dates.
sync_cache
(Private method)
get_url_data
(Private method)
success
return true upon success on the last run execution.
AUTHOR
Yaron Kahanovitch, <yaron-helpme at kahanovitch.com>
BUGS
Please report any bugs or feature requests to bug-www-monitor at rt.cpan.org
, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=WWW-Monitor. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
SUPPORT
You can find documentation for this module with the perldoc command. perldoc WWW::Monitor You can also look for information at:
AnnoCPAN: Annotated CPAN documentation
CPAN Ratings
RT: CPAN's request tracker
Search CPAN
ACKNOWLEDGEMENTS
COPYRIGHT & LICENSE
Copyright 2007 Yaron Kahanovitch, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
1; # End of WWW::Monitor::Task