Add HTTP Referer header to DuckDuckGo requests

closes #2080
dependabot/pip/master/sphinx-6.1.3
Rudis Muiznieks 1 year ago
parent b241015e93
commit 128b8c7f0a
No known key found for this signature in database
GPG Key ID: CABF2F86EF7884F9

@ -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:

Loading…
Cancel
Save