mirror of
https://github.com/searx/searx
synced 2024-12-14 05:00:12 +01:00
[fix] improve result handling of startpage engine
This commit is contained in:
parent
5bffa9ca33
commit
23b9095cbf
@ -66,7 +66,11 @@ def response(resp):
|
|||||||
url = link.attrib.get('href')
|
url = link.attrib.get('href')
|
||||||
|
|
||||||
# block google-ad url's
|
# block google-ad url's
|
||||||
if re.match("^http(s|)://www.google.[a-z]+/aclk.*$", url):
|
if re.match("^http(s|)://(www\.)?google\.[a-z]+/aclk.*$", url):
|
||||||
|
continue
|
||||||
|
|
||||||
|
# block startpage search url's
|
||||||
|
if re.match("^http(s|)://(www\.)?startpage\.com/do/search\?.*$", url):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
title = escape(extract_text(link))
|
title = escape(extract_text(link))
|
||||||
|
Loading…
Reference in New Issue
Block a user