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