if self.is_checkPage(soup) : return False try : guaranteeCompany = soup.find('p', {'class': 'purchase-safe-info-text'}).get_text() guaranteeCompany = PageUtils.replaceString(guaranteeCompany) result["guaranteeCompany"] = guaranteeCompany except: guaranteeCompany = "notFound" # print guaranteeCompany # # total amount of product try : product_infos_list = soup.find_all('div', {'class':'product-info-detail-item'}) totalAmount = product_infos_list[0].find_all('p')[1].get_text() o = PageUtils.clearTotalAmount(str(totalAmount)) print "totalAmount-->", totalAmount, "=========", o totalAmount = o result["productScale_yuan"] = totalAmount except: totalAmount = "notFound" # print totalAmount # # limit time try : limitTime = product_infos_list[1].find_all('p')[1].get_text() result["expirationTime"] = limitTime except: limitTime = "notFound" # print limitTime