summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--searx/engines/duckduckgo.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/searx/engines/duckduckgo.py b/searx/engines/duckduckgo.py
index d0e818faf..e421b9cfd 100644
--- a/searx/engines/duckduckgo.py
+++ b/searx/engines/duckduckgo.py
@@ -222,7 +222,6 @@ def request(query, params):
# link again and again ..
params['headers']['Content-Type'] = 'application/x-www-form-urlencoded'
- params['headers']['Referer'] = 'https://google.com/'
# initial page does not have an offset
if params['pageno'] == 2:
@@ -248,6 +247,10 @@ def request(query, params):
params['data']['nextParams'] = form_data.get('nextParams', '')
params['data']['v'] = form_data.get('v', 'l')
+ # request needs a vqd argument
+ params['data']['vqd'] = get_vqd(query)
+ params['headers']['Referer'] = 'https://lite.duckduckgo.com/'
+
params['data']['kl'] = eng_region
params['cookies']['kl'] = eng_region