object of type 'Response' has no len()

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

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

原文地址:https://www.cnblogs.com/fallenmoon/p/8342241.html