Generation

generate functionTue, 04 Jul 2023

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/')

Want to kickstart your project?Use the new AI Studio to create your code