|Subject:||Patch for Enhancements - New Options for Object and A New Method|
I've added a few more options that one can pass to the object when instantiating WWW::Spyder. Most notably, I added an option that allows one to pass in an instantiated LWP::UserAgent object to WWW::Spyder, like so: my $start_url = ''; # Inherits a LWP::UserAgent object so it should work in its place. my $mech = WWW::Mechanize->new(autocheck => 0); ... my $spyder = WWW::Spyder->new( disable_cnap => 1, image_checking => 1, report_broken_links => 1, seed => $start_url, sleep_base => 0, UA => $mech ); Other options include: disable_cnap => Disables the courtesy nap when verbose output is enabled. image_checking => Verifies the images pointed to by <img src=...> tags. report_broken_links => If set to 1, broken links will be kept track of. I also added a get_broken_links() method that will return a reference to an array of strings representing broken links. 'report_broken_links' must be turned on in order for get_broken_links() to return anything. These changes have helped us automate the testing of our webui product and should prove useful for others as well. You can reach me, Sean Mostafavi, at firstname.lastname@example.org
Message body is not shown because it is too large.