Browse Source

[enh] add year filter to duckduckgo

Adam Tauber 4 years ago
parent
commit
5f450fda74
1 changed files with 2 additions and 1 deletions
  1. 2 1
      searx/engines/duckduckgo.py

+ 2 - 1
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