Scraping using BeautifulSoup print an empty output
Scraping using BeautifulSoup print an empty output Question: I’m trying to scrape a website. I want to print all the elements with the following class name, class=product-size-info__main-label The code is the following: from bs4 import BeautifulSoup with open("MadeInItaly.html", "r") as f: doc= BeautifulSoup (f, "html.parser") tags = doc.find_all(class_="product-size-info__main-label") print(tags) Result: [XS, XS, S, M, L, …