beautifulsoup4 find element by role code example Example: beautifulsoup find all class mydivs = soup.findAll("div", {"class": "stylelistrow"})