defget_all_url(self):"""获取所有请求URL"""
res = self.s.get(self.startUrl, headers=headers)
res.encoding ='utf-8'
selector = etree.HTML(res.text)
urls = selector.xpath('//ul[@class="book_catalog"]//@href')
params ='/webarbs/book/{}/'.format(self.projectId)
urls =[self.domain + params + x for x in urls]
title = selector.xpath('//div[@class="location"]/span/a[last()]/text()')[0]
title = re.sub(r'\||\<|\>|\\|\/|\:|\*|\"|\?','-',str(title))return urls, title