get class name of a tag beautifulsoup code example
Example: 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']
#finding the class of the first div in soup
soup.div['class']
#finding the class of the first p in soup
soup.p['class']