当我打开这个代码时,结果是空的

2024-09-28 21:12:32 发布

您现在位置:Python中文网/ 问答频道 /正文

我尝试用这段代码从这个站点中提取html数据,但结果总是空的。 https://www.seloger.com/annonces/achat/appartement/montpellier-34/alco/140769091.htm?ci=340172&idtt=2,5&idtypebien=2,1&naturebien=1,2,4&tri=initial&bd=ListToDetail

    def parse(self, response):
    content = response.css(".agence-adresse::text").extract()
    yield{'adresse =' :content}

Tags: 数据代码httpscom站点responsehtmlwww