We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
remove ask engine
Reasons:

1. User Tracking via query parameters.

    Example Query: [!ask best museums in Köln](https://searx.be/search?q=%21ask+best+museums+in+K%C3%B6ln&category_none=&language=auto&time_range=&safesearch=0&theme=simple)

    Notice the ```euid=some_id``` at the end for most urls.

2. Very bad results - Something must have changed.

   Example Query: [!ask "yt-dlp"](https://searx.be/search?q=%21ask+%22yt-dlp%22&category_none=&language=auto&time_range=&safesearch=0&theme=simple)



--- END ISSUE ---

Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ---
Path: `searx/engines/ask.py`
Content:
```
1 # SPDX-License-Identifier: AGPL-3.0-or-later
2 """Ask.com"""
3 
4 from urllib.parse import urlencode
5 import dateutil
6 from lxml import html
7 from searx import utils
8 
9 # Metadata
10 about = {
11     "website": "https://www.ask.com/",
12     "wikidata_id": 'Q847564',
13     "official_api_documentation": None,
14     "use_official_api": False,
15     "require_api_key": False,
16     "results": "HTML",
17 }
18 
19 # Engine Configuration
20 categories = ['general']
21 paging = True
22 
23 # Base URL
24 base_url = "https://www.ask.com/web"
25 
26 
27 def request(query, params):
28 
29     query_params = {
30         "q": query,
31         "page": params["pageno"],
32     }
33 
34     params["url"] = f"{base_url}?{urlencode(query_params)}"
35     return params
36 
37 
38 def response(resp):
39 
40     start_tag = 'window.MESON.initialState = {'
41     end_tag = '}};'
42 
43     dom = html.fromstring(resp.text)
44     script = utils.eval_xpath_getindex(dom, '//script', 0, default=None).text
45 
46     pos = script.index(start_tag) + len(start_tag) - 1
47     script = script[pos:]
48     pos = script.index(end_tag) + len(end_tag) - 1
49     script = script[:pos]
50 
51     json_resp = utils.js_variable_to_python(script)
52 
53     results = []
54 
55     for item in json_resp['search']['webResults']['results']:
56 
57         pubdate_original = item.get('pubdate_original')
58         if pubdate_original:
59             pubdate_original = dateutil.parser.parse(pubdate_original)
60         metadata = [item.get(field) for field in ['category_l1', 'catsy'] if item.get(field)]
61 
62         results.append(
63             {
64                 "url": item['url'],
65                 "title": item['title'],
66                 "content": item['abstract'],
67                 "publishedDate": pubdate_original,
68                 # "img_src": item.get('image_url') or None, # these are not thumbs / to large
69                 "metadata": ' | '.join(metadata),
70             }
71         )
72 
73     return results
74
```
--- END FILES ---

Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.

Here is an example:

```diff
diff --git a/examples/server_async.py b/examples/server_async.py
--- a/examples/server_async.py
+++ b/examples/server_async.py
@@ -313,4 +313,4 @@
 
 
 if __name__ == "__main__":
-    asyncio.run(run_async_server("."), debug=True)
+    asyncio.run(run_async_server(), debug=True)
diff --git a/examples/server_sync.py b/examples/server_sync.py
--- a/examples/server_sync.py
+++ b/examples/server_sync.py
@@ -313,5 +313,5 @@
 
 
 if __name__ == "__main__":
-    server = run_sync_server(".")
+    server = run_sync_server()
     server.shutdown()

```

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

{"golden_diff": "diff --git a/searx/engines/ask.py b/searx/engines/ask.py\n--- a/searx/engines/ask.py\n+++ b/searx/engines/ask.py\n@@ -19,6 +19,7 @@\n # Engine Configuration\n categories = ['general']\n paging = True\n+max_page = 5\n \n # Base URL\n base_url = \"https://www.ask.com/web\"\n@@ -61,7 +62,7 @@\n \n         results.append(\n             {\n-                \"url\": item['url'],\n+                \"url\": item['url'].split('&ueid')[0],\n                 \"title\": item['title'],\n                 \"content\": item['abstract'],\n                 \"publishedDate\": pubdate_original,\n", "issue": "remove ask engine\nReasons:\r\n\r\n1. User Tracking via query parameters.\r\n\r\n    Example Query: [!ask best museums in K\u00f6ln](https://searx.be/search?q=%21ask+best+museums+in+K%C3%B6ln&category_none=&language=auto&time_range=&safesearch=0&theme=simple)\r\n\r\n    Notice the ```euid=some_id``` at the end for most urls.\r\n\r\n2. Very bad results - Something must have changed.\r\n\r\n   Example Query: [!ask \"yt-dlp\"](https://searx.be/search?q=%21ask+%22yt-dlp%22&category_none=&language=auto&time_range=&safesearch=0&theme=simple)\r\n\r\n\n", "before_files": [{"content": "# SPDX-License-Identifier: AGPL-3.0-or-later\n\"\"\"Ask.com\"\"\"\n\nfrom urllib.parse import urlencode\nimport dateutil\nfrom lxml import html\nfrom searx import utils\n\n# Metadata\nabout = {\n    \"website\": \"https://www.ask.com/\",\n    \"wikidata_id\": 'Q847564',\n    \"official_api_documentation\": None,\n    \"use_official_api\": False,\n    \"require_api_key\": False,\n    \"results\": \"HTML\",\n}\n\n# Engine Configuration\ncategories = ['general']\npaging = True\n\n# Base URL\nbase_url = \"https://www.ask.com/web\"\n\n\ndef request(query, params):\n\n    query_params = {\n        \"q\": query,\n        \"page\": params[\"pageno\"],\n    }\n\n    params[\"url\"] = f\"{base_url}?{urlencode(query_params)}\"\n    return params\n\n\ndef response(resp):\n\n    start_tag = 'window.MESON.initialState = {'\n    end_tag = '}};'\n\n    dom = html.fromstring(resp.text)\n    script = utils.eval_xpath_getindex(dom, '//script', 0, default=None).text\n\n    pos = script.index(start_tag) + len(start_tag) - 1\n    script = script[pos:]\n    pos = script.index(end_tag) + len(end_tag) - 1\n    script = script[:pos]\n\n    json_resp = utils.js_variable_to_python(script)\n\n    results = []\n\n    for item in json_resp['search']['webResults']['results']:\n\n        pubdate_original = item.get('pubdate_original')\n        if pubdate_original:\n            pubdate_original = dateutil.parser.parse(pubdate_original)\n        metadata = [item.get(field) for field in ['category_l1', 'catsy'] if item.get(field)]\n\n        results.append(\n            {\n                \"url\": item['url'],\n                \"title\": item['title'],\n                \"content\": item['abstract'],\n                \"publishedDate\": pubdate_original,\n                # \"img_src\": item.get('image_url') or None, # these are not thumbs / to large\n                \"metadata\": ' | '.join(metadata),\n            }\n        )\n\n    return results\n", "path": "searx/engines/ask.py"}], "after_files": [{"content": "# SPDX-License-Identifier: AGPL-3.0-or-later\n\"\"\"Ask.com\"\"\"\n\nfrom urllib.parse import urlencode\nimport dateutil\nfrom lxml import html\nfrom searx import utils\n\n# Metadata\nabout = {\n    \"website\": \"https://www.ask.com/\",\n    \"wikidata_id\": 'Q847564',\n    \"official_api_documentation\": None,\n    \"use_official_api\": False,\n    \"require_api_key\": False,\n    \"results\": \"HTML\",\n}\n\n# Engine Configuration\ncategories = ['general']\npaging = True\nmax_page = 5\n\n# Base URL\nbase_url = \"https://www.ask.com/web\"\n\n\ndef request(query, params):\n\n    query_params = {\n        \"q\": query,\n        \"page\": params[\"pageno\"],\n    }\n\n    params[\"url\"] = f\"{base_url}?{urlencode(query_params)}\"\n    return params\n\n\ndef response(resp):\n\n    start_tag = 'window.MESON.initialState = {'\n    end_tag = '}};'\n\n    dom = html.fromstring(resp.text)\n    script = utils.eval_xpath_getindex(dom, '//script', 0, default=None).text\n\n    pos = script.index(start_tag) + len(start_tag) - 1\n    script = script[pos:]\n    pos = script.index(end_tag) + len(end_tag) - 1\n    script = script[:pos]\n\n    json_resp = utils.js_variable_to_python(script)\n\n    results = []\n\n    for item in json_resp['search']['webResults']['results']:\n\n        pubdate_original = item.get('pubdate_original')\n        if pubdate_original:\n            pubdate_original = dateutil.parser.parse(pubdate_original)\n        metadata = [item.get(field) for field in ['category_l1', 'catsy'] if item.get(field)]\n\n        results.append(\n            {\n                \"url\": item['url'].split('&ueid')[0],\n                \"title\": item['title'],\n                \"content\": item['abstract'],\n                \"publishedDate\": pubdate_original,\n                # \"img_src\": item.get('image_url') or None, # these are not thumbs / to large\n                \"metadata\": ' | '.join(metadata),\n            }\n        )\n\n    return results\n", "path": "searx/engines/ask.py"}]}