beautifulsoup find by class
soup.find_all("a", class_="sister")
beautifulsoup find class
mydivs = soup.findAll("div", {"class": "stylelistrow"})
beautiful soup get specific class
from bs4 import BeautifulSoup
# after storing your HTML text in html_text
# (lack of fantasy, ok, you got a point)
soup = BeautifulSoup(html_text, "html.parser")
# it will return a list of 'bs4.element.Tag'
# with class your_class_name
results = soup.find_all(class_ = "your_class_name")
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us