title: "TypeError: object of type 'Response' has no len()"
body: <p>When I try to execute the code</p>
  <pre><code>BeautifulSoup(html, ...)
  </code></pre>
  <p>it gives the error message</p>
  <blockquote>
  <p>TypeError: object of type 'Response' has no len()</p>
  </blockquote>
  <p>I tried passing the actual HTML as a parameter, but it still doesn't work.</p>
  <pre><code>import requests
  
  url = 'http://vineoftheday.com/?order_by=rating'
  response = requests.get(url)
  html = response.content
  
  soup = BeautifulSoup(html, &quot;html.parser&quot;)
  </code></pre>