Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #35324

Re: Scrapy/XPath help

Newsgroups comp.lang.python
Date 2012-12-21 13:58 -0800
References <e180db33-272f-4a9d-bc1e-231f3c3580bf@googlegroups.com> <mailman.1169.1356125659.29569.python-list@python.org>
Subject Re: Scrapy/XPath help
From Always Learning <cbrowning@ou.edu>
Message-ID <mailman.1171.1356127681.29569.python-list@python.org> (permalink)

Show all headers | View raw


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

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Scrapy/XPath help Always Learning <cbrowning@ou.edu> - 2012-12-21 13:21 -0800
  Re: Scrapy/XPath help Grant Rettke <grettke@acm.org> - 2012-12-21 15:34 -0600
    Re: Scrapy/XPath help Always Learning <cbrowning@ou.edu> - 2012-12-21 13:58 -0800
      Re: Scrapy/XPath help Dave Angel <d@davea.name> - 2012-12-21 22:18 -0500
      Re: Scrapy/XPath help donarb <donarb@nwlink.com> - 2012-12-25 11:15 -0800
      Re: Scrapy/XPath help donarb <donarb@nwlink.com> - 2012-12-25 11:15 -0800
    Re: Scrapy/XPath help Always Learning <cbrowning@ou.edu> - 2012-12-21 13:58 -0800

csiph-web