summaryrefslogtreecommitdiff
path: root/searx/engines/duckduckgo.py
diff options
context:
space:
mode:
Diffstat (limited to 'searx/engines/duckduckgo.py')
-rw-r--r--searx/engines/duckduckgo.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/searx/engines/duckduckgo.py b/searx/engines/duckduckgo.py
index 4dd23c759..d37e28c2d 100644
--- a/searx/engines/duckduckgo.py
+++ b/searx/engines/duckduckgo.py
@@ -94,12 +94,12 @@ def get_vqd(query, headers):
logger.debug("re-use cached vqd value: %s", value)
return value
- query_url = 'https://duckduckgo.com/?{query}&iar=images'.format(query=urlencode({'q': query}))
+ query_url = 'https://duckduckgo.com/?q={query}&atb=v290-5'.format(query=urlencode({'q': query}))
res = network.get(query_url, headers=headers)
content = res.text
- if content.find('vqd=\'') == -1:
+ if content.find('vqd=\"') == -1:
raise SearxEngineAPIException('Request failed')
- value = content[content.find('vqd=\'') + 5 :]
+ value = content[content.find('vqd=\"') + 5 :]
value = value[: value.find('\'')]
logger.debug("new vqd value: %s", value)
cache_vqd(query, value)