data =response.xpath("//div[@class='editor-style']")
        info= data[0].xpath('string(.)').extract()[0]
        questionss=response.xpath("//div[@class='editor-style']/p/strong/text()").extract()
        print(info)

 

 

其中,info就是所有子标签的内容了。

 

参考:
 

xpath 所有子标签text

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-06-11
  • 2022-12-23
  • 2022-12-23
  • 2021-11-15
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-02-02
  • 2021-08-14
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案