Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.003 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; '%s"': 0.07; 'subject:help': 0.07; 'python': 0.09; 'skip:" 80': 0.09; 'to:addr:comp.lang.python': 0.09; 'cc:addr:python-list': 0.10; 'columns': 0.16; 'skip:> 20': 0.16; 'windows': 0.19; 'bit': 0.21; 'errors': 0.23; 'cc:no real name:2**0': 0.24; 'cc:2**1': 0.24; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; 'header :User-Agent:1': 0.26; 'select': 0.26; 'subject:/': 0.28; 'gather': 0.29; "i'm": 0.29; 'that.': 0.30; 'expect': 0.31; 'text,': 0.33; 'received:google.com': 0.34; 'text': 0.34; 'received:209.85': 0.35; 'received:209': 0.37; 'subject:: ': 0.38; 'skip:/ 30': 0.91 Newsgroups: comp.lang.python Date: Fri, 21 Dec 2012 13:58:47 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=70.233.142.100; posting-account=ZRn68woAAABhA18vFTAzB9iSoUWLJYfI References: User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-IP: 70.233.142.100 MIME-Version: 1.0 Subject: Re: Scrapy/XPath help From: Always Learning To: comp.lang.python@googlegroups.com Content-Type: text/plain; charset=ISO-8859-1 Cc: python-list@python.org, Always Learning X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Message-ID: Lines: 9 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1356127681 news.xs4all.nl 6841 [2001:888:2000:d::a6]:52452 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:35324 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