mirror of
https://github.com/searxng/searxng.git
synced 2025-07-14 08:49:19 +02:00
[fix] implement tests and remove usage of gen_useragent in engines
This commit is contained in:
parent
1f908a6222
commit
9a9ca307fe
3 changed files with 56 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue