strip hrefs

Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
This commit is contained in:
2018-02-26 18:17:36 -05:00
parent d5bea3e51e
commit 509703a0ad
+1 -1
View File
@@ -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: