コード例 #1
0
def name(data):
    information = {}
    datalist = data
    # print data
    for i in range(len(datalist)):
        data = datalist[i]
        name = data["inv"]
        license_code = data["bLicNo"]
        license_code = deal_lable(license_code)
        types = data["invType_CN"]
        types = deal_lable(types)
        license_type = data["blicType_CN"]
        detail_check = data["detailCheck"]

        if detail_check == "true":
            detail_key = data["invId"]
            detail_url = "http://www.gsxt.gov.cn/corp-query-entprise-info-shareholderDetail-%s.html" % detail_key
            ra_date, ra_ways, true_amount, reg_amount, ta_ways, ta_date = deal_detail_content(
                detail_url)
        else:
            logging.info('无 shareholder 详情信息')
            ra_date, ra_ways, true_amount, reg_amount, ta_ways, ta_date = None, None, None, None, None, None
        information[i] = [
            name, license_code, license_type, types, ra_date, ra_ways,
            true_amount, reg_amount, ta_ways, ta_date
        ]
    return information
コード例 #2
0
 def name(self, data):
     information = {}
     for i in xrange(len(data)):
         single_data = data[i]
         content_before = single_data["altBe"]
         content_after = single_data["altAf"]
         change_date = single_data["altDate"]
         change_date = deal_html_code.change_date_style(change_date)
         item = single_data["altItem_CN"]
         item = deal_lable(item)
         information[i] = [content_before, content_after, change_date, item]
     return information
コード例 #3
0
    def name(self, data):
        information = {}
        datalist = data
        # print data
        for i in range(len(datalist)):
            data = datalist[i]
            name = data["inv"]
            if data["blicType_CN"] != '':
                license_type = data["blicType_CN"]
                license_type = deal_lable(license_type)
                license_code = data["bLicNo"]
                license_code = deal_lable(license_code)
            elif data["cerType_CN"] != '':
                license_type = data["cerType_CN"]
                license_type = deal_lable(license_type)
                license_code = data["cerNo"]
                license_code = deal_lable(license_code)
            else:
                license_type = ''
                license_code = ''
            types = data["invType_CN"]
            types = deal_lable(types)

            detail_check = data["detailCheck"]
            country = data["country_CN"]
            address = data["dom"]
            if detail_check == "true":
                detail_key = data["invId"]
                detail_url = "http://www.gsxt.gov.cn/corp-query-entprise-info-shareholderDetail-%s.html" % detail_key

                ra_date, ra_ways, true_amount, reg_amount, ta_ways, ta_date = self.deal_detail_content(
                    detail_url)
            else:
                logging.info('无 shareholder 详情信息')
                ra_date, ra_ways, true_amount, reg_amount, ta_ways, ta_date = '0000-00-00', '', '', '', '', '0000-00-00'
            information[i] = [
                name, license_code, license_type, types, ra_date, ra_ways,
                true_amount, reg_amount, ta_ways, ta_date, country, address
            ]
        return information
コード例 #4
0
ファイル: QGGS_clear.py プロジェクト: cash2one/BussinessQG
    def name(self, data):
        info = {}
        for i in xrange(len(data)):
            singledata = data[i]
            position = singledata["ligpriSign"]
            if position == "2":
                position = '清算组成员'
            elif position == "1":
                position = '清算组负责人'

            person_name = singledata["liqMem"]
            person_name = deal_lable(person_name)
            info[i] = [person_name, position]
        return info
コード例 #5
0
def name(data):
    information = {}
    for i in xrange(len(data)):
        single_data = data[i]
        content_before = single_data["altBe"]
        content_after = single_data["altAf"]
        change_date = single_data["altDate"]
        change_date = datetime.datetime.utcfromtimestamp(change_date / 1000)
        otherStyleTime = change_date.strftime("%Y-%m-%d")
        change_date = otherStyleTime
        item = single_data["altItem_CN"]
        item = deal_lable(item)
        information[i] = [content_before, content_after, change_date, item]
    return information
コード例 #6
0
def name(data):
    information = {}
    datalist = data
    for i in xrange(len(datalist)):
        data = datalist[i]
        name = data["name"]
        name = deal_lable(name)
        position = data["position_CN"]
        pattern = re.compile('.*img.*')
        key = re.findall(pattern, position)
        if len(key) != 0:
            position_key = config.person_img
            for key in position_key.keys():
                if key in position:
                    position = position_key[key]
                    break
        elif position != '':
            position = data["position_CN"].replace(" ", "")
        elif position == '':
            position = None
        information[i] = [name, position]
    return information