Amir Tahvildaran on 30 Jan 2012 11:20:28 -0800 |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: [PLUG] Link Checker |
The following will get all pages one level away from the urls listed in the file urls.wget
wget --page-requisites --recursive --level=1 --directory-prefix=directory_to_contain_files --convert-links --html-extension --input-file=urls.wget
The following will get all pages under the directory /goodwin/, starting at the main page
wget --page-requisites --recursive --no-parent --convert-links --html-extension -o log --directory-prefix=goodwin http://drexel.edu/goodwin/
If you use the -o log option, you can then grep the output for 40x, 50x errors.
grep -B2 -A1 ' [45]0[0-9] ' log
I've been looking at link checkers, and while the http://validator.w3.org/checklink is pretty thorough, it is slow and the output doesn't lend itself readily to spreadsheet analysis.
I have a large (thousands of documents) website that I'm trying to generate a broken links report for.
Links outside the site being checked should be verified but not followed any further.
Links inside the site should be followed all the way.
Since in some links are in _javascript_ it would be nice to follow links within _javascript_.
There are a lot of vanity urls in place, which means most redirects are not errors, but we should have a report of redirects to review them.
There is a lot of removed content, a seperate report of this would be nice, but we're not going to clean thousands of dead links out of pages.
Beyond what we need, an OSI compliant licensed product would be preferred, but I wouldn't rule out paying for a tool.
___________________________________________________________________________
Philadelphia Linux Users Group -- http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion -- http://lists.phillylinux.org/mailman/listinfo/plug
___________________________________________________________________________ Philadelphia Linux Users Group -- http://www.phillylinux.org Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce General Discussion -- http://lists.phillylinux.org/mailman/listinfo/plug