[fix] block ixquick search url's

This commit is contained in:
Thomas Pointhuber 2015-08-24 11:31:30 +02:00
parent 23b9095cbf
commit 996c96ffff
1 changed files with 4 additions and 0 deletions

View File

@ -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"]'):