I have two cases where i want to scrape html tags with custom html attributes This is the example of the html. How do you scrape all the elements with the custom attribute
# First case:
soup.find_all(attrs={"limit":True})
# Second case:
soup.find_all("div", attrs={"limit":True})
Reference:
If your attribute name doesn't collide with either Python keywords or soup.find_all
named args, the syntax is simpler:
soup.find_all(id=True)