From 4e87dc2c2d5b1626513e159f8b70a9241462324c Mon Sep 17 00:00:00 2001 From: qiyuan Date: Wed, 28 Feb 2018 11:13:57 +0800 Subject: [PATCH] fix issue 45 --- requests_html.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requests_html.py b/requests_html.py index d5890a2..979d1fb 100644 --- a/requests_html.py +++ b/requests_html.py @@ -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: