You can use str
replace
method:
...
yield {
'Brand': item.xpath(".//div[@class='p-title']/a/text()").get("").replace("
",""),
'Price': item.xpath(".//div[@class='product-title p-tab p-tab-13145']/span/text()").get("").replace("
","")
}
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…