Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #35494
| Newsgroups | comp.lang.python |
|---|---|
| Date | 2012-12-25 11:15 -0800 |
| References | <e180db33-272f-4a9d-bc1e-231f3c3580bf@googlegroups.com> <mailman.1169.1356125659.29569.python-list@python.org> <b36b317d-01e6-4a88-9f2c-7506d41bc480@googlegroups.com> |
| Subject | Re: Scrapy/XPath help |
| From | donarb <donarb@nwlink.com> |
| Message-ID | <mailman.1271.1356462933.29569.python-list@python.org> (permalink) |
On Friday, December 21, 2012 1:58:47 PM UTC-8, Always Learning wrote:
> 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()
>
You're missing a right bracket in the xpath expression:
/span[@class='team-name']/text()
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll 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