2
0
mirror of https://github.com/searx/searx synced 2025-08-31 06:26:28 +00:00

fix duckduckgo engine (#3486)

Co-authored-by: rolf <rolf@>
This commit is contained in:
Dr. Rolf Jansen
2023-04-04 16:18:04 -03:00
committed by GitHub
parent de0fde4ec2
commit 9ba072bb74

View File

@@ -73,7 +73,9 @@ def request(query, params):
# link again and again ..
params['headers']['Content-Type'] = 'application/x-www-form-urlencoded'
params['headers']['Origin'] = 'https://lite.duckduckgo.com'
params['headers']['Referer'] = 'https://lite.duckduckgo.com/'
params['headers']['User-Agent'] = 'Mozilla/5.0'
# initial page does not have an offset
if params['pageno'] == 2: