diff options
author | Grant Lanham <contact@grantlanham.com> | 2024-06-09 14:22:20 -0400 |
---|---|---|
committer | Markus Heiser <markus.heiser@darmarIT.de> | 2024-06-23 11:51:41 +0200 |
commit | 9a9ca307fe53ea8ed9d18a06a1a7da9fa4a1c28f (patch) | |
tree | 34742219f3ea3a90f0b20b9cbf792e6318c2f734 /searx | |
parent | 1f908a6222638b547016f5c21472ae26a76adbd2 (diff) | |
download | searxng-9a9ca307fe53ea8ed9d18a06a1a7da9fa4a1c28f.tar.gz searxng-9a9ca307fe53ea8ed9d18a06a1a7da9fa4a1c28f.zip |
[fix] implement tests and remove usage of gen_useragent in engines
Diffstat (limited to 'searx')
-rw-r--r-- | searx/engines/mojeek.py | 3 |
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 |