Commit c361811c authored by Noémi Ványi's avatar Noémi Ványi

[fix] fix xpath of google images

parent 6d76d9b2
......@@ -74,7 +74,7 @@ def response(resp):
for result in dom.xpath('//div[@data-ved]'):
try:
metadata = loads(''.join(result.xpath('./div[@class="rg_meta"]/text()')))
metadata = loads(''.join(result.xpath('./div[contains(@class, "rg_meta")]/text()')))
except:
continue
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment