Esempio n. 1
0
 def s_creditor_execute(self, dlink, pageSoup):
     br_keyword = [u"被担保债权概况"]
     dict_ba = common.get_dict(pageSoup, br_keyword, class_='detailsList')
     dict_ba = common.s_creditor_dict(dict_ba)
     mortgage_reg_num = self.c_mortgage_execute(
         dlink, pageSoup)[0]['mortgage_reg_num']
     dict_ba['mortgage_reg_num'] = mortgage_reg_num
     dict_ba_list = []
     dict_ba_list.append(dict_ba)
     return dict_ba_list
Esempio n. 2
0
    def s_creditor_execute(self, id, click_id):

        soups = self.mortgage_soup.find_all('table', {'class': 'detailsList'})
        for each_soup in soups:
            if '被担保债权概况' in each_soup.text:
                info = self.parse(pageSoup=each_soup)
                info[0]['mortgage_reg_num'] = self.mortgage_reg_num
                info[0] = common.s_creditor_dict(info[0])
                self.qyxx_s_creditor.extend(info)
                break
Esempio n. 3
0
 def s_creditor_execute(self, pageSoup):
     table = pageSoup.find_all('table', class_='detailsList')
     for each_table in table:
         if '被担保债权概况' in each_table.text:
             info = self.parse(each_table)
             if info != []:
                 info[0] = common.s_creditor_dict(info[0])
                 info[0]['mortgage_reg_num'] = self.mortgage_reg_num
                 self.qyxx_s_creditor.extend(info)
             break
Esempio n. 4
0
 def s_creditor_execute(self, pageSoup):
     tables = pageSoup.find('div', class_='detail-info')
     tables = tables.find_all('table')
     info = []
     for each in tables:
         if '被担保债权概况' in each.find('tr').text:
             info = self.parse(each)
             if info != []:
                 info[0]['mortgage_reg_num'] = self.mortgage_reg_num
             break
     info[0] = common.s_creditor_dict(info[0])
     self.qyxx_s_creditor.extend(info)
Esempio n. 5
0
    def s_creditor_execute(self, mortgage_soup):
        soup = mortgage_soup.find_all('div',
                                      {'style': 'width:800px;height:600px;'})

        for each_soup in soup:
            if '被担保债权概况信息' in each_soup.text:
                info = self.parse(each_soup)
                if info != []:
                    info[0]['mortgage_reg_num'] = self.mortgage_reg_num

                    info[0] = common.s_creditor_dict(info[0])

                    self.qyxx_s_creditor.extend(info)
                break
Esempio n. 6
0
 def s_creditor_execute(self, **kwargs):
     soup = kwargs.get('mortSoup')
     table_tag = soup.find_all('div')
     for each in table_tag:
         if '被担保债权概况' in each.text:
             table = each.next_sibling.next_sibling
             keys = table.find_all('td', class_='tdTitleText')
             info = {}
             for each_key in keys:
                 key = each_key.text.strip()
                 value = each_key.next_sibling.next_sibling.text.strip()
                 info[key] = value
             info['mortgage_reg_num'] = self.mortgage_reg_num
             info = common.s_creditor_dict(info)
             self.qyxx_s_creditor.append(info)
             break