Scrapy/XPath help

Always Learning cbrowning at ou.edu
Fri Dec 21 22:58:47 CET 2012


Sorry about that. I'm using Python 2.7.3, 32 bit one Windows 7.

The errors I get are

>>File "C:\python27\lib\site-packages\scrapy-0.16.3-py2.7.egg\scrapy\selector\lxmlsel.py", line 47, in select
>>raise ValueError("Invalid XPath: %s" % xpath)
>>exceptions.ValueError: Invalid XPath: /span[@class='team-name'/text()

Ultimaly, I expect it to gather the team name in text, and then the odds in one of the columns in text as well, so I can then put it into a .csv



More information about the Python-list mailing list