mirror of https://github.com/searxng/searxng.git
Compare commits
2 Commits
5ed40af3ba
...
b84ee9ac60
Author | SHA1 | Date |
---|---|---|
Markus Heiser | b84ee9ac60 | |
M Asenov | faa32d5773 |
|
@ -80,7 +80,7 @@ def response(resp):
|
|||
|
||||
dom = html.fromstring(resp.text)
|
||||
|
||||
for result in dom.xpath('//div[@class="dg_u"]'):
|
||||
for result in dom.xpath('//div[@class="dg_u"]/div[contains(@class, "mc_vtvc")]'):
|
||||
metadata = loads(result.xpath('.//div[@class="vrhdata"]/@vrhm')[0])
|
||||
info = ' - '.join(result.xpath('.//div[@class="mc_vtvc_meta_block"]//span/text()')).strip()
|
||||
content = '{0} - {1}'.format(metadata['du'], info)
|
||||
|
|
Loading…
Reference in New Issue