Merge pull request #2081 from rudism/duckduckgo-referer

Add HTTP Referer header to DuckDuckGo requests
This commit is contained in:
Markus Heiser 2023-01-07 08:27:18 +01:00 committed by GitHub
commit 633ba8b1b6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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