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