Hello,
when using the following xpath in an selector
sel.xpath(u".//div[text()='Dateigröße:')]//following-sibling::*/descendant-or-self::text()")
I get the error
File "/usr/local/lib/python2.7/site-packages/scrapy/selector/unified.py",
line 172, in xpath
return self.__class__(flatten([x.xpath(xpath) for x in self]))
File "/usr/local/lib/python2.7/site-packages/scrapy/selector/unified.py",
line 100, in xpath
raise ValueError(msg if six.PY3 else msg.encode("unicode_escape"))
ValueError: Invalid XPath:
//div[text()='Dateigr\xf6\xdfe:')]//following-sibling::*/descendant-or-self::text()
The encoding of the python source file is utf-8 and signaled by the comment
# -*- coding: utf-8 -*-
at the top of the file. What am I doing wrong?
Cheers
Tobias Bell
--
You received this message because you are subscribed to the Google Groups
"scrapy-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/scrapy-users.
For more options, visit https://groups.google.com/d/optout.