Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #35335
| Path | csiph.com!usenet.pasdenom.info!news.albasani.net!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <d@davea.name> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.036 |
| X-Spam-Evidence | '*H*': 0.93; '*S*': 0.00; '%s"': 0.07; 'subject:help': 0.07; 'python': 0.09; 'skip:" 80': 0.09; 'stack': 0.15; 'columns': 0.16; 'wrote:': 0.17; '>>>': 0.18; 'windows': 0.19; 'trying': 0.21; 'bit': 0.21; 'errors': 0.23; 'raise': 0.24; 'header:In-Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; 'select': 0.26; 'lines': 0.28; 'subject:/': 0.28; 'gather': 0.29; 'source': 0.29; "i'm": 0.29; 'that.': 0.30; 'error': 0.30; 'expect': 0.31; 'code': 0.31; 'file': 0.32; 'help,': 0.32; 'text,': 0.33; 'to:addr:python-list': 0.33; "can't": 0.34; 'text': 0.34; 'pm,': 0.35; 'there': 0.35; 'but': 0.36; 'why': 0.37; 'subject:: ': 0.38; 'some': 0.38; 'to:addr:python.org': 0.39; 'received:192': 0.39; 'received:192.168': 0.40; 'your': 0.60; 'save': 0.61; 'levels': 0.66; 'header:Reply-To:1': 0.68; 'received:74.208': 0.71; 'reply-to:no real name:2**0': 0.72; 'received:74.208.4.194': 0.84; 'skip:/ 30': 0.91 |
| Date | Fri, 21 Dec 2012 22:18:56 -0500 |
| From | Dave Angel <d@davea.name> |
| User-Agent | Mozilla/5.0 (X11; Linux x86_64; rv:16.0) Gecko/20121011 Thunderbird/16.0.1 |
| MIME-Version | 1.0 |
| To | python-list@python.org |
| Subject | Re: Scrapy/XPath help |
| References | <e180db33-272f-4a9d-bc1e-231f3c3580bf@googlegroups.com> <mailman.1169.1356125659.29569.python-list@python.org> <b36b317d-01e6-4a88-9f2c-7506d41bc480@googlegroups.com> |
| In-Reply-To | <b36b317d-01e6-4a88-9f2c-7506d41bc480@googlegroups.com> |
| Content-Type | text/plain; charset=ISO-8859-1 |
| Content-Transfer-Encoding | 7bit |
| X-Provags-ID | V02:K0:GD91OeVz9ZFEiPuqJz3FAZZxaw7BHhBBgd42ZVdodkn KsrmC7ZPEcO8/MRQOyy6P6/iT/muEgRrYhzGW5vsR/MlL/VCFl crk5R6m1qS8uwsdw98EFSyt/oagHJWm0PkNtfSSnSMuxS9H1y3 EbUjpezlytUjojXaQWa2C7vChO/6D86yP+Lflf/bDLtPyX32K3 MhuQcat7U/YCpLxclvfwpkT7B5a9i/xjc2jFx30lccPs3LVNL1 gJcEDlPybAtxzzfvifCmuQpdwG8QEVOisYkhuLNTg63PBLPBSQ 41oM40+G6PMrHyF4wgAEq4EjwJORmUGNBd6roi8iBTjcyhn3Q= = |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| Reply-To | d@davea.name |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.1182.1356146357.29569.python-list@python.org> (permalink) |
| Lines | 20 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1356146357 news.xs4all.nl 6899 [2001:888:2000:d::a6]:50040 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:35335 |
Show key headers only | View raw
On 12/21/2012 04:58 PM, Always Learning wrote:
> 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
Why are you displaying only the last 3 lines of the error message?
Unless your source code is lxmlsel.py, there are other stack levels
above this one.
(I can't help, but I'm trying to save some time for someone who can)
--
DaveA
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