mirror of
https://github.com/searxng/searxng.git
synced 2025-07-19 19:29:26 +02:00
[mod] qwant engine: impersonate chrome
This commit is contained in:
parent
c2bf60455a
commit
c3273bc04b
2 changed files with 8 additions and 0 deletions
|
@ -148,6 +148,12 @@ def request(query, params):
|
||||||
args['offset'] = (params['pageno'] - 1) * args['count']
|
args['offset'] = (params['pageno'] - 1) * args['count']
|
||||||
|
|
||||||
params['url'] = url + urlencode(args)
|
params['url'] = url + urlencode(args)
|
||||||
|
params['headers'] = {
|
||||||
|
"Accept": "application/json",
|
||||||
|
"Accept-Language": q_locale.replace("_", "-"),
|
||||||
|
"Referer": "https://www.qwant.com/",
|
||||||
|
"Origin": "https://www.qwant.com",
|
||||||
|
}
|
||||||
|
|
||||||
return params
|
return params
|
||||||
|
|
||||||
|
|
|
@ -1711,6 +1711,8 @@ engines:
|
||||||
disabled: true
|
disabled: true
|
||||||
additional_tests:
|
additional_tests:
|
||||||
rosebud: *test_rosebud
|
rosebud: *test_rosebud
|
||||||
|
network:
|
||||||
|
impersonate: chrome
|
||||||
|
|
||||||
- name: qwant news
|
- name: qwant news
|
||||||
qwant_categ: news
|
qwant_categ: news
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue