how to get all element with class name in beautifulsoup code example
Example 1: beautifulsoup find all class
mydivs = soup.findAll("div", {"class": "stylelistrow"})
Example 2: beautiful soup get class name
#finding the class of the first div in soup
soup.div['class']
#finding the class of the first p in soup
soup.p['class']