scrapy中response.body 与 response.text区别

body http响应正文, byte类型

text 文本形式的http正文,str类型,它是response.body经过response.encoding经过解码得到
response.text = response.body.decode(response.encoding)

相关文章:

  • 2021-10-25
  • 2021-10-18
  • 2022-12-23
  • 2021-11-23
  • 2022-03-08
  • 2022-12-23
  • 2021-05-27
  • 2021-11-03
猜你喜欢
  • 2022-12-23
  • 2021-05-12
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案