summaryrefslogtreecommitdiff
path: root/searx/engines/uxwing.py
diff options
context:
space:
mode:
authorBnyro <bnyro@tutanota.com>2025-07-11 08:42:39 +0200
committerGitHub <noreply@github.com>2025-07-11 08:42:39 +0200
commita48ec8a4d513b3d80ae4881809e6617db9f5ecaa (patch)
treecfdbd1079138cf2d01d84d0b750b26538271d5bb /searx/engines/uxwing.py
parent4b9644eb2723b58bdb68f8d97f1220a7645d079e (diff)
[chore] engines: remove redundant usages of utils#gen_useragent (#4993)
These engines override the user agent manually using `gen_useragent`, although that's already done in the online preprocessor that runs before the actual `request(query, params)` method is called. Hence, this call is duplicated. Related: - https://github.com/searxng/searxng/pull/4990#discussion_r2195142838
Diffstat (limited to 'searx/engines/uxwing.py')
-rw-r--r--searx/engines/uxwing.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/searx/engines/uxwing.py b/searx/engines/uxwing.py
index aef8b8fee..59bb75afc 100644
--- a/searx/engines/uxwing.py
+++ b/searx/engines/uxwing.py
@@ -4,7 +4,7 @@
from urllib.parse import quote_plus
from lxml import html
-from searx.utils import eval_xpath, eval_xpath_list, extract_text, gen_useragent
+from searx.utils import eval_xpath, eval_xpath_list, extract_text
about = {
"website": 'https://uxwing.com',
@@ -22,7 +22,6 @@ enable_http2 = False
def request(query, params):
params['url'] = f"{base_url}/?s={quote_plus(query)}"
- params['headers'] = {'User-Agent': gen_useragent()}
return params