on master help sign in
[enh] add year filter to duckduckgo
commit5f450fda74e80bf350eb1493f66cfa61deaf5cea authorAdam Tauber <asciimoo@gmail.com> dateThu 25 Mar 2021, 00:25 (6 years ago) parentfd737dc
1 file changed+2−1
searx/engines/duckduckgo.py+2−1
searx/engines/duckduckgo.py+2−1
@@ -39,7 +39,8 @@ url = 'https://html.duckduckgo.com/html'
3939url_ping = 'https://duckduckgo.com/t/sl_h'
4040time_range_dict = {'day': 'd',
4141 'week': 'w',
42− 'month': 'm'}
42+ 'month': 'm',
43+ 'year': 'y'}
4344
4445# specific xpath variables
4546result_xpath = '//div[@class="result results_links results_links_deep web-result "]' # noqa