for div in divs:try:
title ="".join(div.xpath(".//p[contains(@class,'content__list--item--title')]/a/text()")).strip()
house_url ="https://nb.lianjia.com"+"".join(
div.xpath(".//p[contains(@class,'content__list--item--title')]/a/@href"))
info = div.xpath(".//p[@class='content__list--item--des']//text()")
local ="".join(info[1:4])if"/"in local:
local ="".join(div.xpath(".//p[contains(@class,'content__list--item--brand')]/text()")).strip()
area = info[6].strip()if"㎡"notin area:
area = info[4].strip()
orientation = info[8].strip()if"室"in orientation or"厅"in orientation:
orientation = info[6].strip()
home = info[-1].strip()if"室"notin home and"厅"notin home:
home = info[10].strip()
price ="".join(div.xpath(".//span[@class='content__list--item-price']//text()")).strip()
label ="/".join(div.xpath(".//p[contains(@class,'content__list--item--bottom')]//text()")).strip()
label = re.sub("\s","", label)
label = re.sub("//","/", label)except:pass