summaryrefslogtreecommitdiff
path: root/searx/engines/yahoo_news.py
diff options
context:
space:
mode:
Diffstat (limited to 'searx/engines/yahoo_news.py')
-rw-r--r--searx/engines/yahoo_news.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/searx/engines/yahoo_news.py b/searx/engines/yahoo_news.py
index 06f090f74..00f208b17 100644
--- a/searx/engines/yahoo_news.py
+++ b/searx/engines/yahoo_news.py
@@ -39,7 +39,12 @@ paging = True
categories = ['news']
# search-url
-search_url = 'https://news.search.yahoo.com/search' '?{query}&b={offset}'
+search_url = (
+ # fmt: off
+ 'https://news.search.yahoo.com/search'
+ '?{query}&b={offset}'
+ # fmt: on
+)
AGO_RE = re.compile(r'([0-9]+)\s*(year|month|week|day|minute|hour)')
AGO_TIMEDELTA = {