summaryrefslogtreecommitdiff
path: root/searx/engines/google_news.py
diff options
context:
space:
mode:
authorAdam Tauber <asciimoo@gmail.com>2018-04-09 09:34:26 +0200
committerGitHub <noreply@github.com>2018-04-09 09:34:26 +0200
commite5def5b0191a36315d300457cdfdf68aebbc9a4c (patch)
tree3a969551bf2f3c899b12dd5a5ea2522f7b605942 /searx/engines/google_news.py
parent283f6c905340087d7511bfcdb815c0b4183bcdda (diff)
parent96877862269f35aefc0b3ca7a7cb8812b1555dc4 (diff)
Merge pull request #1260 from MarcAbonce/engine-fixes
[fix] Engine fixes
Diffstat (limited to 'searx/engines/google_news.py')
-rw-r--r--searx/engines/google_news.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/searx/engines/google_news.py b/searx/engines/google_news.py
index 41abf0a01..aadcb76df 100644
--- a/searx/engines/google_news.py
+++ b/searx/engines/google_news.py
@@ -68,8 +68,8 @@ def response(resp):
for result in dom.xpath('//div[@class="g"]|//div[@class="g _cy"]'):
try:
r = {
- 'url': result.xpath('.//a[@class="l _PMs"]')[0].attrib.get("href"),
- 'title': ''.join(result.xpath('.//a[@class="l _PMs"]//text()')),
+ 'url': result.xpath('.//a[@class="l lLrAF"]')[0].attrib.get("href"),
+ 'title': ''.join(result.xpath('.//a[@class="l lLrAF"]//text()')),
'content': ''.join(result.xpath('.//div[@class="st"]//text()')),
}
except: