diff options
author | Marc Abonce Seguin <marc-abonce@mailbox.org> | 2018-04-08 20:56:05 -0500 |
---|---|---|
committer | Marc Abonce Seguin <marc-abonce@mailbox.org> | 2018-04-08 20:56:05 -0500 |
commit | 835d1edd5834c3c8117dc4614cb0b0b4316d3153 (patch) | |
tree | 8794cf949ffe81b9ce1b7ce7c72b1d24fd8549f4 /searx/engines/google_news.py | |
parent | 343e555ee96ab8b40b5ed4dce287331685eff3fa (diff) | |
download | searxng-835d1edd5834c3c8117dc4614cb0b0b4316d3153.tar.gz searxng-835d1edd5834c3c8117dc4614cb0b0b4316d3153.zip |
[fix] google news xpath
Diffstat (limited to 'searx/engines/google_news.py')
-rw-r--r-- | searx/engines/google_news.py | 4 |
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: |