I know that I can do:
soup.findAll("p", {"class" :"something"})
but I'm l开发者_高级运维ooking for p-tags that DON't have any class. how do I make sure I only get p-tags with no class attribute??
soup.findAll('p', {'class': None})
I know that I can do:
soup.findAll("p", {"class" :"something"})
but I'm l开发者_高级运维ooking for p-tags that DON't have any class. how do I make sure I only get p-tags with no class attribute??
soup.findAll('p', {'class': None})
精彩评论