on master help sign in
[fix] improve result handling of startpage engine
commit23b9095cbf2d31a1495ee3d63a55bd81548cd367 authorThomas Pointhuber <thomas.pointhuber@gmx.at> dateMon 24 Aug 2015, 11:28 (11 years ago) parent5bffa9c
1 file changed+5−1
searx/engines/startpage.py+5−1
searx/engines/startpage.py+5−1
@@ -66,7 +66,11 @@ def response(resp):
6666 url = link.attrib.get('href')
6767
6868 # block google-ad url's
69− if re.match("^http(s|)://www.google.[a-z]+/aclk.*$", url):
69+ if re.match("^http(s|)://(www\.)?google\.[a-z]+/aclk.*$", url):
70+ continue
71+
72+ # block startpage search url's
73+ if re.match("^http(s|)://(www\.)?startpage\.com/do/search\?.*$", url):
7074 continue
7175
7276 title = escape(extract_text(link))