Browse Source

[fix] improve result handling of startpage engine

Thomas Pointhuber 9 years ago
parent
commit
23b9095cbf
1 changed files with 5 additions and 1 deletions
  1. 5 1
      searx/engines/startpage.py

+ 5 - 1
searx/engines/startpage.py

@@ -66,7 +66,11 @@ 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
 
         title = escape(extract_text(link))