import requests
from bs4 import BeautifulSoup
import urllib.request
url = 'https://dota2.fandom.com/wiki/Category:Hero_icons'
respounse = requests.get(url)
soup = BeautifulSoup(respounse.content, "html.parser")
images = soup.find_all("img")
number = 0
for image in images:
image_src = image["src"]
print(image_src)
urllib.request.urlretrieve(image_src, str(number))
number += 1