def stock_freeze_execute(self, list_, pageSoup): br_keyword = "gqxxliststr" + r"[\s\S]*}]';" dict_ba_list = common.get_dict_list_2(pageSoup, *br_keyword) if dict_ba_list != []: raise ValueError("dict_ba_list is not empty.") else: return None
def mortgage_execute(self, dlink, pageSoup): br_keyword = "mortgageGuaTable" + r"[\s\S]*}]';" dict_ba_list = common.get_dict_list_2(pageSoup, *br_keyword) for dict_ba in dict_ba_list: mortgage_reg_num = self.c_mortgage_execute( dlink, pageSoup)[0]['mortgage_reg_num'] dict_ba['mortgage_reg_num'] = mortgage_reg_num return dict_ba_list
def mortgage_execute(self, dlink, pageSoup): br_keyword = "mortgageGuaTable" + r"[\s\S]*}]';" dict_ba_list = common.get_dict_list_2(pageSoup, *br_keyword) if dict_ba_list != []: raise ValueError("dict_ba_list is not empty.") # for dict_ba in dict_ba_list: # mortgage_reg_num = self.c_mortgage_execute(dlink, pageSoup)[0]['mortgage_reg_num'] # dict_ba['mortgage_reg_num'] = mortgage_reg_num else: return None
def s_h_execute(self, list_, pageSoup): br_keyword = "czxxliststr" + r"[\s\S]*}]';" dict_ba_list = common.get_dict_list_2(pageSoup, *br_keyword) return dict_ba_list