is there a python equivalent for this tool?

S

Stefan Behnel

Jorge said:
Dear python users, do you know of a tool like this that is written in python?

http://code.google.com/p/css-redundancy-checker/

in case you where wondering I just don't want to have the ruby
dependency on my python proyects.

This comes to mind:

http://code.google.com/p/cssutils/

Not sure if it does what you want, though. If not, it should be quite trivial
to implement what you ask using this:

http://codespeak.net/lxml/cssselect.html

Algorithm: for each CSS selector in the stylesheet, check if it matches an
element in the HTML tree. If not, remove it.

Stefan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,773
Messages
2,569,594
Members
45,120
Latest member
ShelaWalli
Top