关于Python一直提示IndexError: list index out of range是怎么回事?
)forsiteinsites:item=LoanItem()item['.extract()[0]item['text()".he-pai;])item[...
) for site in sites: item = LoanItem() item['.extract()[0] item['text()".he-pai;]) item['.do" target="_blank">http;tboday/ ] def parse(self;td[2]/://www.cn'] = loan.xpath("amount'rate'td[5]/.cn"] = site; item[' allowed_domains = [".loan import Loan from scrapy;text()".xpath("text()"];tbody/.spider import Spider from scrapy;tr/.xpath("amount']) item['://www;public_time'table/] = loan.xpath(".xpath("text()"tbody/] = site;table/): # -*- coding;company_name'] = site;tr/://www;public_time'... 展开全部> /index.xpath("process'table/text()".scanNumber(item['.items import LoanItem class hepaiSpider(Spider);@style": sel = Selector(response) items = [] loan =Loan() sites = sel;]) items;http;tbody/] = loan;table/period_type'rate'] start_urls = [ "td[6]/, response): utf-8 -*- import time import re from start <收起 问题补充:title'text()"。.extract()[0] exceptions;home/start/: list index out of range 求指教啊;table/spiders/tbody/yx/a/] = site;tr/这是全部的错误提示 File "。;hepai_spider;;);sites//.xpath("scrapy/.IndexError;start/, in parse item['.py", line 26
展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询