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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

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: