on master help sign in
[fix] google news xpath
commit835d1edd5834c3c8117dc4614cb0b0b4316d3153 authorMarc Abonce Seguin <marc-abonce@mailbox.org> dateSun 8 Apr 2018, 20:56 (9 years ago) parent343e555
1 file changed+2−2
searx/engines/google_news.py+2−2
searx/engines/google_news.py+2−2
@@ -68,8 +68,8 @@ def response(resp):
6868 for result in dom.xpath('//div[@class="g"]|//div[@class="g _cy"]'):
6969 try:
7070 r = {
71− 'url': result.xpath('.//a[@class="l _PMs"]')[0].attrib.get("href"),
72− 'title': ''.join(result.xpath('.//a[@class="l _PMs"]//text()')),
71+ 'url': result.xpath('.//a[@class="l lLrAF"]')[0].attrib.get("href"),
72+ 'title': ''.join(result.xpath('.//a[@class="l lLrAF"]//text()')),
7373 'content': ''.join(result.xpath('.//div[@class="st"]//text()')),
7474 }
7575 except: