Skip Menu |

This queue is for tickets about the WWW-LinkChecker-Internal CPAN distribution.

Report information
The Basics
Id: 102724
Status: resolved
Priority: 0/
Queue: WWW-LinkChecker-Internal

People
Owner: Nobody in particular
Requestors: SZABGAB [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: (no value)
Fixed in: (no value)



Subject: add progress report
I tried to run the script but I don't know if has been doing anything at. It would be nice to have a progress report to know which URL is it checking now. Besides, I am not sure it even checked any of the URLs linked from the page I gave it as it returned very quickly: $ link-checker --base='http://perlmaven.com/perl-tutorial' Checking SRC URL 'http://perlmaven.com/perl-tutorial'
Hi Gabor, On Thu Mar 12 10:26:47 2015, SZABGAB wrote: Show quoted text
> I tried to run the script but I don't know if has been doing anything > at. It would be nice to have a progress report to know which URL is it > checking now. Besides, I am not sure it even checked any of the URLs > linked from the page I gave it as it returned very quickly: > > $ link-checker --base='http://perlmaven.com/perl-tutorial' > Checking SRC URL 'http://perlmaven.com/perl-tutorial'
the "Checking SRC URL" is the progress report, and it exists in the main loop of "link-checker": STACK: while (my $url_rec = pop(@stack)) { my $url = $url_rec->{'url'}; print "Checking SRC URL '$url'\n"; What it means is that the script gave up after checking the first URL. I think the problem is that it only checks URLs below the base URL, which should be 'http://perlmaven.com/' in your case. Moreover, perhaps a useful feature would be the ability to specify a different start URL than the base URL. Regards, -- Shlomi Fish
thanks
On Thu Mar 12 12:56:33 2015, SHLOMIF wrote: Show quoted text
> Hi Gabor, > > On Thu Mar 12 10:26:47 2015, SZABGAB wrote:
> > I tried to run the script but I don't know if has been doing anything > > at. It would be nice to have a progress report to know which URL is > > it > > checking now. Besides, I am not sure it even checked any of the URLs > > linked from the page I gave it as it returned very quickly: > > > > $ link-checker --base='http://perlmaven.com/perl-tutorial' > > Checking SRC URL 'http://perlmaven.com/perl-tutorial'
> > the "Checking SRC URL" is the progress report, and it exists in the > main loop of "link-checker": > > STACK: > while (my $url_rec = pop(@stack)) > { > my $url = $url_rec->{'url'}; > print "Checking SRC URL '$url'\n"; > > What it means is that the script gave up after checking the first URL. > I think the problem is that it only checks URLs below the base URL, > which should be 'http://perlmaven.com/' in your case. Moreover, > perhaps a useful feature would be the ability to specify a different > start URL than the base URL. > > Regards, > > -- Shlomi Fish
Version 0.2.0 adds a --start option for an alternative start URL as well as adds a message to note that the search has successfully (for some values of "successfully") ended. Thanks again. Closing.