1from urllib.request import urlopen
2from bs4 import BeautifulSoup
3
4site = "[insert name of the site]"
5html = urlopen(site)
6bs = BeautifulSoup(html, 'html.parser')
7
8images = bs.find_all('img')
9for img in images:
10 if img.has_attr('src'):
11 print(img['src'])
12