codysoyland/gevent-spider — pull request #2 by tb0hdan (2013-05-13 16:38:04+00:00)
Title: Fixed lxml/cssselect crash while parsing html.

File "lxml.etree.pyx", line 2969, in lxml.etree.fromstring (src/lxml/lxml.etree.c:61978)
File "parser.pxi", line 1585, in lxml.etree._parseMemoryDocument (src/lxml/lxml.etree.c:91455)
ValueError: Unicode strings with encoding declaration are not supported.
(, ) failed with ValueError

for link in html.cssselect('a'):
AttributeError: 'NoneType' object has no attribute 'cssselect'
, u'http://url.com, (u'url.com',), , set([u'http://url.com/', u'http://url)> failed with AttributeError