def start_requests(self):
url='https://my.qidian.com/bookcase/'
yield Request(url,cookies=self.cookie_dict)
def parse(self, response, **kwargs):
list_selection=response.xpath("//tbody/tr")
for one in list_selection:
title=one.xpath('//b/a[2]/text()').extract_first()
type = one.xpath('//b/a[1]/text()').extract_first()
update=one.xpath('td[3]/text()').extract_first()
author=one.xpath('td[4]/a/text()').extract_first()
item=QidianLoginItem()
item['title']=title
item['type']=type
item['update']=update
item['author']=author
yield item
结果就是
你是不是title和type取错值了。