title: BeautifulSoup error when loading the parser
body: <p>So BS4 was working earlier today however it has problems when trying to load a page.</p>
  <pre><code>import requests
  from bs4 import BeautifulSoup
  
  name = input(&quot;&quot;)
  
  twitter = requests.get(&quot;https://twitter.com/&quot; + name)
  #instagram = requests.get(&quot;https//instagram.com/&quot; + name)
  #website = requests.get(&quot;https://&quot; + name + &quot;.com&quot;)
  
  twitter_soup = BeautifulSoup(twitter, 'html.parser')
  twitter_available = twitter_soup.body.findAll(text=&quot;This account doesn't exist&quot;)
  if twitter_available == True:
      print(&quot;Available&quot;)
  else:
      print(&quot;Not Available&quot;)
  </code></pre>
  <p>So the line where twitter_soup is declared I get the following errors</p>
  <blockquote>
  <p>Traceback (most recent call last):
  File &quot;D:\Programming\Python\name-checker.py&quot;, line 12, in 
  twitter_soup = BeautifulSoup(twitter, 'html.parser')
  File &quot;C:\Users\User\AppData\Local\Programs\Python\Python39\lib\site-packages\bs4_<em>init</em>_.py&quot;, line 310, in <strong>init</strong>
  elif len(markup) &lt;= 256 and (
  TypeError: object of type 'Response' has no len()</p>
  </blockquote>
  <p>I have also tried the other parsers the docs were suggesting however none are working.</p>