mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-04-08 08:30:59 +00:00
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
This commit is contained in:
parent
87e2b25414
commit
0baec73a77
1 changed files with 4 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue