title: BeautifulSoup not extracting image alt text
body: <p>I am in the very preliminary stages of creating a web scraper. I'm still pretty new to Python. I'm trying to extract star ratings from a web page. This is meant to find a list of all img alt text in a page and print it to console.</p>
  
  <pre><code>url = 'https://www.nhtsa.gov/vehicle/2017/FORD/ESCAPE/SUV/AWD#safety-ratings-frontal' #url to retrieve data from
  html = '&lt;div class="col-sm-6"&gt;&lt;img src="/sites/nhtsa.dot.gov/themes/nhtsa_gov/images/star-rating/5.png" alt="5 star" class="vehicle-base-details--rating"&gt;&lt;/div&gt;' #temporary-- for testing
  page = urlopen(url)
  soup = BeautifulSoup(page, "html.parser")
  for div in soup.find_all('div'): #lists all image alt text
      for img in div.find_all('img', alt=True):
          print(img['alt'])
  </code></pre>
  
  <p>When I replace "page" with "html" on line 4, BeautifulSoup is able to extract what I need and prints "5 star". The issue is when I try to get the HTML directly from the web page. I have tried searching by the object's class as well and I just end up with an empty list when getting it straight from the site.</p>