Add HTTP Referer header to DuckDuckGo requests

closes #2080
This commit is contained in:
Rudis Muiznieks 2023-01-06 16:07:37 -06:00
parent b241015e93
commit 128b8c7f0a
No known key found for this signature in database
GPG Key ID: CABF2F86EF7884F9
1 changed files with 1 additions and 0 deletions

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: