mirror of
https://github.com/searxng/searxng.git
synced 2024-11-19 19:00:10 +01:00
[fix] block ixquick search url's
This commit is contained in:
parent
23b9095cbf
commit
996c96ffff
@ -73,6 +73,10 @@ def response(resp):
|
|||||||
if re.match("^http(s|)://(www\.)?startpage\.com/do/search\?.*$", url):
|
if re.match("^http(s|)://(www\.)?startpage\.com/do/search\?.*$", url):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
# block ixquick search url's
|
||||||
|
if re.match("^http(s|)://(www\.)?ixquick\.com/do/search\?.*$", url):
|
||||||
|
continue
|
||||||
|
|
||||||
title = escape(extract_text(link))
|
title = escape(extract_text(link))
|
||||||
|
|
||||||
if result.xpath('./p[@class="desc"]'):
|
if result.xpath('./p[@class="desc"]'):
|
||||||
|
Loading…
Reference in New Issue
Block a user