summaryrefslogtreecommitdiff
path: root/searx/engines
diff options
context:
space:
mode:
authorGrant Lanham <contact@grantlanham.com>2024-06-09 14:22:20 -0400
committerMarkus Heiser <markus.heiser@darmarIT.de>2024-06-23 11:51:41 +0200
commit9a9ca307fe53ea8ed9d18a06a1a7da9fa4a1c28f (patch)
tree34742219f3ea3a90f0b20b9cbf792e6318c2f734 /searx/engines
parent1f908a6222638b547016f5c21472ae26a76adbd2 (diff)
downloadsearxng-9a9ca307fe53ea8ed9d18a06a1a7da9fa4a1c28f.tar.gz
searxng-9a9ca307fe53ea8ed9d18a06a1a7da9fa4a1c28f.zip
[fix] implement tests and remove usage of gen_useragent in engines
Diffstat (limited to 'searx/engines')
-rw-r--r--searx/engines/mojeek.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/searx/engines/mojeek.py b/searx/engines/mojeek.py
index 585a48ff8..6aaca021b 100644
--- a/searx/engines/mojeek.py
+++ b/searx/engines/mojeek.py
@@ -6,7 +6,7 @@ from urllib.parse import urlencode
from lxml import html
from dateutil.relativedelta import relativedelta
-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://mojeek.com',
@@ -63,7 +63,6 @@ def request(query, params):
logger.debug(args["since"])
params['url'] = f"{base_url}/search?{urlencode(args)}"
- params['headers'] = {'User-Agent': gen_useragent()}
return params