title: Attribute Error and HTTP Error 404 trying to scrape images from websites
body: <p>I am trying to get all the images from a list of websites. However I got he following error messages: </p>
  
  <p>1) AttributeError:</p>
  
  <pre><code>---------------------------------------------------------------------------
  AttributeError                            Traceback (most recent call last)
  &lt;ipython-input-52-d786eb50d187&gt; in &lt;module&gt;
       14     html = urlopen(link)
       15     bs = bs4(html, 'html.parser')
  ---&gt; 16     images = bs4.find_all('img', {})
       17 
       18     for image in images:
  
  /anaconda3/lib/python3.7/site-packages/bs4/element.py in find_all(self, name, attrs, recursive, text, limit, **kwargs)
     1698         :rtype: bs4.element.ResultSet
     1699         """
  -&gt; 1700         generator = self.descendants
     1701         if not recursive:
     1702             generator = self.children
  
  AttributeError: 'str' object has no attribute 'descendants'
  </code></pre>
  
  <p>and </p>
  
  <p>2) HTTP 404</p>
  
  <pre><code>HTTPError: HTTP Error 404: Not Found
  </code></pre>
  
  <p>Do you know what they are and how I could fix them?</p>
  
  <p>The code that I am using is the following: </p>
  
  <pre><code>from bs4 import BeautifulSoup as bs4
  
  images=[]
  
  list_1=["file_1.csv"]
  
  df = pd.read_csv("path"+list_1)
  
  for link in df["Col"]:
      html = urlopen(link)
      bs = bs4(html, 'html.parser')
      images = bs4.find_all('img', {})
  
      for image in images: 
              images.append(image['src'])
  </code></pre>
  
  <p>Thank you</p>