[fix] bing images page change

This commit is contained in:
Adam Tauber 2016-03-26 02:07:52 +01:00
parent 6d55642ab4
commit 71de593a5b
2 changed files with 10 additions and 154 deletions

View file

@ -69,7 +69,7 @@ def response(resp):
dom = html.fromstring(resp.text)
# parse results
for result in dom.xpath('//div[@class="dg_u"]'):
for result in dom.xpath('//div[@class="dg_u"]/div'):
link = result.xpath('./a')[0]
# parse json-data (it is required to add a space, to make it parsable)