Merge pull request #2161 from return42/fix-2146

[fix-2146] set different HTTP Referer header to DuckDuckGo requests
This commit is contained in:
Markus Heiser 2023-02-03 10:35:52 +01:00 committed by GitHub
commit 9faf0dc289
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -73,7 +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/'
params['headers']['Referer'] = 'https://google.com/'
# initial page does not have an offset
if params['pageno'] == 2: