diff options
author | Adam Tauber <asciimoo@gmail.com> | 2021-03-25 00:25:36 +0100 |
---|---|---|
committer | Adam Tauber <asciimoo@gmail.com> | 2021-03-25 00:25:36 +0100 |
commit | 5f450fda74e80bf350eb1493f66cfa61deaf5cea (patch) | |
tree | 4cdc3e20956a0a87858274c15d07bf0810dfc3dd /searx/engines/duckduckgo.py | |
parent | fd737dc9d83752d3d544822e8e179b8bd5d5d8b2 (diff) | |
download | searxng-5f450fda74e80bf350eb1493f66cfa61deaf5cea.tar.gz searxng-5f450fda74e80bf350eb1493f66cfa61deaf5cea.zip |
[enh] add year filter to duckduckgo
Diffstat (limited to 'searx/engines/duckduckgo.py')
-rw-r--r-- | searx/engines/duckduckgo.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/searx/engines/duckduckgo.py b/searx/engines/duckduckgo.py index 92431b137..ae1e36686 100644 --- a/searx/engines/duckduckgo.py +++ b/searx/engines/duckduckgo.py @@ -39,7 +39,8 @@ url = 'https://html.duckduckgo.com/html' url_ping = 'https://duckduckgo.com/t/sl_h' time_range_dict = {'day': 'd', 'week': 'w', - 'month': 'm'} + 'month': 'm', + 'year': 'y'} # specific xpath variables result_xpath = '//div[@class="result results_links results_links_deep web-result "]' # noqa |