data = sel.xpath(u'//div[@id="mainContent"]//table//table/tr/td/text()').extract() pairs = zip(data[::2], data[1::2]) Saludos,
-- luismiguel (@lmorillas) 2014-06-09 2:52 GMT+02:00 Drew Friestedt <d...@3fproperties.com>: > In scrapy shell I'm trying to select the "District" and "Receipt #" for each > eviction date from this website: > http://www.cookcountysheriff.com/courtservices/CourtServices_EvictionShedule.html > > I've read several posts here and have tried to follow them. First, I > disabled javascripts on page load and find the xpath in firebug. > > I find the xpath of the first element in the table on the left to be: > /html/body/div/div[3]/div/table/tbody/tr/td/table/tbody/tr > > I'm trying to run: > > sel.xpath('/html/body/div/div[3]/div/table/tbody/tr/td/table/tbody/tr/td') > > in scrapy shell but it returns [] > > Any pointers? > > > > > > -- > You received this message because you are subscribed to the Google Groups > "scrapy-users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to scrapy-users+unsubscr...@googlegroups.com. > To post to this group, send email to scrapy-users@googlegroups.com. > Visit this group at http://groups.google.com/group/scrapy-users. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "scrapy-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to scrapy-users+unsubscr...@googlegroups.com. To post to this group, send email to scrapy-users@googlegroups.com. Visit this group at http://groups.google.com/group/scrapy-users. For more options, visit https://groups.google.com/d/optout.