############### From cssutils ############### .. package-meta:: cssutils jaraco/cssutils `cssutils `_ is a Python CSS Object Model library. It parses a stylesheet or an inline declaration into a ``CSSStyleSheet`` of ``CSSStyleRule`` objects, each with a ``selectorText`` and a ``CSSStyleDeclaration`` you can read, edit, and re-serialize. It is the tool a BeautifulSoup- or lxml-based scraper reaches for when it needs to read the rules inside a ``" "link" ) print(computed_style(doc.select_one("#x"))["color"]) .. testoutput:: red