Sfoglia il codice sorgente

[fix] block ixquick search url's

Thomas Pointhuber 9 anni fa
parent
commit
996c96ffff
1 ha cambiato i file con 4 aggiunte e 0 eliminazioni
  1. 4
    0
      searx/engines/startpage.py

+ 4
- 0
searx/engines/startpage.py Vedi File

@@ -73,6 +73,10 @@ def response(resp):
73 73
         if re.match("^http(s|)://(www\.)?startpage\.com/do/search\?.*$", url):
74 74
             continue
75 75
 
76
+        # block ixquick search url's
77
+        if re.match("^http(s|)://(www\.)?ixquick\.com/do/search\?.*$", url):
78
+            continue
79
+
76 80
         title = escape(extract_text(link))
77 81
 
78 82
         if result.xpath('./p[@class="desc"]'):