diff options
Diffstat (limited to 'searx/engines/yahoo_news.py')
| -rw-r--r-- | searx/engines/yahoo_news.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/searx/engines/yahoo_news.py b/searx/engines/yahoo_news.py index f3f756ba3..f9a5fee1b 100644 --- a/searx/engines/yahoo_news.py +++ b/searx/engines/yahoo_news.py @@ -77,9 +77,9 @@ def response(resp): url = parse_url(url) title = extract_text(result.xpath('.//h4/a')) content = extract_text(result.xpath('.//p')) - img_src = eval_xpath_getindex(result, './/img/@data-src', 0, None) + thumbnail = eval_xpath_getindex(result, './/img/@data-src', 0, None) - item = {'url': url, 'title': title, 'content': content, 'img_src': img_src} + item = {'url': url, 'title': title, 'content': content, 'thumbnail': thumbnail} pub_date = extract_text(result.xpath('.//span[contains(@class,"s-time")]')) ago = AGO_RE.search(pub_date) |