title: Why AttributeError: 'bytes' object has no attribute 'findAll'
body: <p>I am trying to screape the youtube data from trending page. Got error     </p>
  
  <pre><code>from bs4 import BeautifulSoup
  import requests
  import csv
  
  source = requests.get("https://www.youtube.com/feed/trending").text
  soup = BeautifulSoup(source, 'lxml').encode("utf-8")
  
  csv_file = open('YouTube.csv','w')
  csv_writer = csv.writer(csv_file)
  csv_writer.writerow(['Title', 'Description'])
  
  for content in soup.findAll('div', class_= "yt-lockup-content"):
  #for content in soup.find_all('div', class_= "yt-lockup-content"):
      print (content)
  </code></pre>