from bs4 import BeautifulSoup html_code = """ """ soup = BeautifulSoup(html_code, 'html.parser') image_tags = soup.find_all('img') for img_tag in image_tags: image_url = img_tag['src'] print(image_url)