Answers for "beautiful soup get by class name"

5

beautifulsoup find by class

soup.find_all("a", class_="sister")
Posted by: Guest on May-12-2020
1

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']
Posted by: Guest on May-19-2021

Code answers related to "beautiful soup get by class name"

Python Answers by Framework

Browse Popular Code Answers by Language