title: I want to download after image crawling for multiple pages
body: <p>I want to download after image crawling for multiple pages. However, all images cannot be downloaded because they are overwritten in [for syntax].</p>
  <p>Below is my code. What is wrong?</p>
  <pre><code>from urllib.request import urlopen
  from bs4 import BeautifulSoup
  import requests as rq
  
  for page in range(2,4):
  baseUrl = 'https://onepiecetreasurecruise.fr/Artwork/index.php?page=index'
  plusUrl = baseUrl + str(page)
  html = urlopen(plusUrl).read()
  soup = BeautifulSoup(html, 'html.parser')
  img = soup.find_all(class_='card-img-top')
  listimg = []
      for i in img:
         listimg.append(i['src'])
  n = 1
      for index, img_link in enumerate(listimg):
          img_data = rq.get(img_link).content
          with open('./onepiece/' + str(index+1) + '.png', 'wb+') as f:
              f.write(img_data)
              n += 1
  </code></pre>