diff options
author | Noémi Ványi <sitbackandwait@gmail.com> | 2016-12-11 16:39:12 +0100 |
---|---|---|
committer | Noémi Ványi <sitbackandwait@gmail.com> | 2016-12-11 16:58:31 +0100 |
commit | c59c76e6ee14f0417ad55ecf0f888f62f34f1f6d (patch) | |
tree | de9b8bfa3460ad3712b38132ad6c4037f7e475fd /searx/engines/google_news.py | |
parent | 2fc1091b7fbd76189754767e2da8315e04ca1e47 (diff) | |
download | searxng-c59c76e6ee14f0417ad55ecf0f888f62f34f1f6d.tar.gz searxng-c59c76e6ee14f0417ad55ecf0f888f62f34f1f6d.zip |
add year to time range to engines which support "Last year"
Engines:
* Bing images
* Flickr (noapi)
* Google
* Google Images
* Google News
Diffstat (limited to 'searx/engines/google_news.py')
-rw-r--r-- | searx/engines/google_news.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/searx/engines/google_news.py b/searx/engines/google_news.py index ede615614..37253c6a7 100644 --- a/searx/engines/google_news.py +++ b/searx/engines/google_news.py @@ -29,7 +29,8 @@ search_url = 'https://www.google.com/search'\ time_range_attr = "qdr:{range}" time_range_dict = {'day': 'd', 'week': 'w', - 'month': 'm'} + 'month': 'm', + 'year': 'y'} # do search-request |