From 0baec73a77fb5afb190ba2f231a55cf5f6ce8d5e Mon Sep 17 00:00:00 2001 From: calvin Date: Fri, 11 Mar 2005 23:47:45 +0000 Subject: [PATCH] only find redirection links with http-equiv='refresh' git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@2428 e7d03fd6-7b0d-0410-9947-9c21f3af8025 --- linkcheck/linkparse.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/linkcheck/linkparse.py b/linkcheck/linkparse.py index bd850848..18f31507 100644 --- a/linkcheck/linkparse.py +++ b/linkcheck/linkparse.py @@ -173,6 +173,10 @@ class LinkFinder (TagFinder): for attr in tagattrs: if attr not in attrs: continue + if tag == "meta": + refresh = attrs.get('http-equiv', u'').lower() + if refresh != 'refresh': + continue # name of this link name = self.get_link_name(tag, attrs, attr) # possible codebase