python3 beautifulsoup4 example
Example 1: beautiful soup 4
from bs4 import BeautifulSoup
with open("index.html") as fp:
soup = BeautifulSoup(fp)
soup = BeautifulSoup("<html>a web page</html>")
Example 2: beautifulsoup find class
mydivs = soup.findAll("div", {"class": "stylelistrow"})