title: How to download images on wikipedia using BeautifulSoup
body: <p>I am starting to use BeautifulSoup and am currently trying to download images from Wikipedia. </p>
  
  <pre><code>response = requests.get(url)
  soup = BeautifulSoup(response.content,"html.parser")
  images = soup.find_all("img", attrs = {"alt": "GenericAttribute"})
  for image in images:
      image_src = image["src"]
      urllib.request.urlretrieve(image_src)
  </code></pre>
  
  <p>No error messages appear, however, I cannot seem to download the images correctly. I believe the issue is in the soup variable or the images variable, but I do not know what to change them to to make them functional in relation to Wikipedia. Thank you</p>