summaryrefslogtreecommitdiff
path: root/searx/engines
diff options
context:
space:
mode:
authorAdam Tauber <asciimoo@gmail.com>2015-08-24 13:23:13 +0200
committerAdam Tauber <asciimoo@gmail.com>2015-08-24 13:23:13 +0200
commitc43476229b58f20dba62c0f623ae2dad96bc8525 (patch)
tree5883a13486a54e96980eedefdd37cea4c6f7b439 /searx/engines
parent3a8eafcc6b19b4b47b10534fbc683e4e3fbc064d (diff)
parent996c96fffff328497c2ba305c61e064256c84188 (diff)
Merge pull request #405 from pointhi/bug_fixes
some Bug fixes
Diffstat (limited to 'searx/engines')
-rw-r--r--searx/engines/startpage.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/searx/engines/startpage.py b/searx/engines/startpage.py
index 9d5b4befe..7d58f7f01 100644
--- a/searx/engines/startpage.py
+++ b/searx/engines/startpage.py
@@ -66,7 +66,15 @@ def response(resp):
url = link.attrib.get('href')
# 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
+
+ # block ixquick search url's
+ if re.match("^http(s|)://(www\.)?ixquick\.com/do/search\?.*$", url):
continue
title = escape(extract_text(link))