summaryrefslogtreecommitdiff
path: root/searx/engines/yahoo_news.py
diff options
context:
space:
mode:
authorAlexandre Flament <alex@al-f.net>2020-10-04 09:06:20 +0200
committerGitHub <noreply@github.com>2020-10-04 09:06:20 +0200
commitb728cb610b92161609b1c40babff25749720fc25 (patch)
tree733b665dd897cc8e4cd7e37f7d64a052c260d6f0 /searx/engines/yahoo_news.py
parente2cd9b65bb2b2e1f1085cf48442632da0d52077e (diff)
parent8f914a28facec314a2b98b11d3cc1207eb8ee8ab (diff)
Merge pull request #2241 from dalf/move-extract-text-and-url
Move the extract_text and extract_url functions to searx.utils
Diffstat (limited to 'searx/engines/yahoo_news.py')
-rw-r--r--searx/engines/yahoo_news.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/searx/engines/yahoo_news.py b/searx/engines/yahoo_news.py
index 345e4d91f..e9dd5d6db 100644
--- a/searx/engines/yahoo_news.py
+++ b/searx/engines/yahoo_news.py
@@ -13,12 +13,11 @@ import re
from datetime import datetime, timedelta
from urllib.parse import urlencode
from lxml import html
-from searx.engines.xpath import extract_text, extract_url
from searx.engines.yahoo import (
parse_url, _fetch_supported_languages, supported_languages_url, language_aliases
)
from dateutil import parser
-from searx.utils import match_language
+from searx.utils import extract_text, extract_url, match_language
# engine dependent config
categories = ['news']