I’m messing around with lxml in Python, but can’t seem to figure out how to use the cssselect() function to get all div‘s with the class reddit-entry, as it seems to dislike the - character. Any other class name without - works fine.
I’m messing around with lxml in Python, but can’t seem to figure out how
Share
That’s a bug in the parser in lxml.cssselect. I took over maintenance of the project and extracted it from lxml. The bug is fixed in the new cssselect: http://packages.python.org/cssselect/
lxml 2.4 will use the new cssselect, but until then the way to use it is: