I'm using cssutils in Python to parse CSS style files and would like to search the parse tree by ID and Class. That is, given some CSS style file and some Class name (e.g. div navbar), how do I ascertain the style rules encapsulated by this selector? A solution or any ideas about where to look in the existing documentation (http://packages.python.org/cssutils/index.htm) would be highly appreciated
Search cssutils.py parse tree by ID and CLASS selectors
1k views Asked by user1004968 At
1
You can try this out:
Similarly you can try for CLASS_NAME as well.
Would this work for you?