BeautifulSoup parses HTML and offers various ways to manipulate and search HTML. Is there something similar for CSS?
In particular, I would like to know if this HTML text is displayed as bold . Either he has an ancestor that is a <strong> or <bold> (which can be done with BeautifulSoup), or he has his ancestor (or himself) that has CSS attributes with font-weight: bold .
Is this possible without creating your own library?
python css beautifulsoup
Oliver zheng
source share