object of type 'Response' has no len()

看见没,这里括号弄错了!

网上解释是requests.get()得到的是一个response对象,无法用BeautifulSoup解析,如果要解析,解析对象应该是requests.get().content,
html = requests.get('http://www.jianshu.com').content

object of type 'Response' has no len()

 

相关文章:

  • 2021-06-05
  • 2021-04-03
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-10-11
  • 2022-12-23
  • 2021-10-27
  • 2021-06-16
  • 2022-01-22
相关资源
相似解决方案