mirror of https://github.com/searxng/searxng.git
Compare commits
No commits in common. "b84ee9ac606e44eb105fe40e527fc226db6a6d19" and "5ed40af3ba08604c714a893b5424f25584f81ece" have entirely different histories.
b84ee9ac60
...
5ed40af3ba
|
@ -80,7 +80,7 @@ def response(resp):
|
||||||
|
|
||||||
dom = html.fromstring(resp.text)
|
dom = html.fromstring(resp.text)
|
||||||
|
|
||||||
for result in dom.xpath('//div[@class="dg_u"]/div[contains(@class, "mc_vtvc")]'):
|
for result in dom.xpath('//div[@class="dg_u"]'):
|
||||||
metadata = loads(result.xpath('.//div[@class="vrhdata"]/@vrhm')[0])
|
metadata = loads(result.xpath('.//div[@class="vrhdata"]/@vrhm')[0])
|
||||||
info = ' - '.join(result.xpath('.//div[@class="mc_vtvc_meta_block"]//span/text()')).strip()
|
info = ' - '.join(result.xpath('.//div[@class="mc_vtvc_meta_block"]//span/text()')).strip()
|
||||||
content = '{0} - {1}'.format(metadata['du'], info)
|
content = '{0} - {1}'.format(metadata['du'], info)
|
||||||
|
|
Loading…
Reference in New Issue