Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Parse the HTML content using Beautiful Soup
- soup = BeautifulSoup(html_content, 'html.parser')
- # Extract product names and prices
- products = soup.select('div.p-4 h4 > a')
- prices = soup.select('div.p-4 h5')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement