|
@@ -57,6 +57,13 @@ class Details(feapder.BiddingDetailSpider):
|
|
|
rm_list = request.rm_list
|
|
|
html = remove_htmldata(rm_list, html, response)
|
|
|
|
|
|
+ if request.to_dict.get('title_xpath', None):
|
|
|
+ for sxpath in request.title_xpath:
|
|
|
+ title = response.xpath(sxpath).extract_first("").strip() # 三级页标题
|
|
|
+ if title:
|
|
|
+ list_item.title = title
|
|
|
+ break
|
|
|
+
|
|
|
list_item.contenthtml = html
|
|
|
|
|
|
if request.files_info:
|