Browse Source

[mod] Ask engine: remove tracking paramaters and set max page to 5

Austin-Olacsi 1 year ago
parent
commit
b6fe2cad71
1 changed files with 2 additions and 1 deletions
  1. 2 1
      searx/engines/ask.py

+ 2 - 1
searx/engines/ask.py

@@ -19,6 +19,7 @@ about = {
 # Engine Configuration
 categories = ['general']
 paging = True
+max_page = 5
 
 # Base URL
 base_url = "https://www.ask.com/web"
@@ -61,7 +62,7 @@ def response(resp):
 
         results.append(
             {
-                "url": item['url'],
+                "url": item['url'].split('&ueid')[0],
                 "title": item['title'],
                 "content": item['abstract'],
                 "publishedDate": pubdate_original,