tags without attributes using Beautiful Soup? - 易学问答
tags without attributes using Beautiful Soup?
Say a web page contains the following:
You can give a lambda to find_all and filter with it.
find_all
soup.find_all(lambda tag: tag.name == 'p' and not tag.attrs)