scrape a webpage and provide all links to images in a list
from bs4 import BeautifulSoup import requests def scrape_page(link): html = requests.get(link) soup = BeautifulSoup(html.content, 'html.parser') return [x['src'] for x in soup.find_all('img')] scrape_page('https://www.google.com/')