Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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']
 
PREVIOUS NEXT
Tagged: #beautiful #soup #class
ADD COMMENT
Topic
Name
7+7 =