diff options
| author | Apply55gx <Apply55gx@users.noreply.github.com> | 2017-10-25 10:44:28 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-10-25 10:44:28 +0200 |
| commit | d800e3fcfa44bc0be7262092815b2d2020a9d9f3 (patch) | |
| tree | 0bdc64b3e15592e2fdeeaa40f21cbcc8039b7949 /searx/engines/google_news.py | |
| parent | 18a4e7035f72a3c31239ae0bd1ee67cc2ad354b8 (diff) | |
| parent | b34124fd8a6b020136ca9656acdb01afceabe96f (diff) | |
Merge pull request #1 from asciimoo/master
-
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 7344b5289..8881d0dad 100644 --- a/searx/engines/google_news.py +++ b/searx/engines/google_news.py @@ -67,8 +67,8 @@ def response(resp): for result in dom.xpath('//div[@class="g"]|//div[@class="g _cy"]'): try: r = { - 'url': result.xpath('.//div[@class="_cnc"]//a/@href')[0], - 'title': ''.join(result.xpath('.//div[@class="_cnc"]//h3//text()')), + 'url': result.xpath('.//a[@class="l _PMs"]')[0].attrib.get("href"), + 'title': ''.join(result.xpath('.//a[@class="l _PMs"]//text()')), 'content': ''.join(result.xpath('.//div[@class="st"]//text()')), } except: |