mirror of
https://github.com/kennethreitz/requests-html.git
synced 2026-06-05 14:50:20 +00:00
fix issue 45
This commit is contained in:
+1
-1
@@ -154,7 +154,7 @@ class BaseParser:
|
||||
|
||||
try:
|
||||
href = link.attrs['href'].strip()
|
||||
if not href.startswith('#') and self.skip_anchors and href not in ['javascript:;']:
|
||||
if not(href.startswith('#') and self.skip_anchors) and href not in ['javascript:;']:
|
||||
if href:
|
||||
yield href
|
||||
except KeyError:
|
||||
|
||||
Reference in New Issue
Block a user