def adm_punishment_execute(self, list_):
     url = "http://gz.gsxt.gov.cn/2016/nzgs/query!searchOldData.shtml"
     data = {'c': '0', 't': '38'}
     data["nbxh"] = list_
     try:
         info = get_html(url, data)
     except:
         info = [{'wfxwlx': u'由于网络原因请求数据失败,请稍后再尝试查询'}]
     if info == []:
         url = "http://gz.gsxt.gov.cn/2016/nzgs/query!searchOldData.shtml"
         try:
             info = get_html(url, data)
         except:
             info = [{'wfxwlx': u'由于网络原因请求数据失败,请稍后再尝试查询'}]
     dict_ba_list = info
     dict_keyword = {
         'xuhao': [],
         'pun_number': ['cfjdsh'],
         'reason': ['wfxwlx'],
         'fines': ['xzcfnr'],
         'authirty': ['cfjg'],
         'pun_date': ['cfrq'],
         'xiangqing': []
     }
     dict_ba_list = common.judge_keyword_1(dict_ba_list, dict_keyword)
     return dict_ba_list
    def basicinfo_execute(self, list_):
        url = 'http://gsxt.gzgs.gov.cn/2016/query!searchData.shtml'
        data = {'c': '0', 't': '5'}
        data["nbxh"] = list_
        info = get_html(url, data)
        if info == []:
            url = 'http://gsxt.gzgs.gov.cn/2016/nzgs/query!searchData.shtml'
            data = {'c': '1', 't': '1'}
            data["nbxh"] = list_
            info = get_html(url, data)
        if info != []:
            for i in info:
                i["区域"] = u'贵州'
                dict_keyword = {
                    'qymc': ['***', 'zhmc'],  #
                    'fddbr': ['jyzm'],  #经营者
                    'qylxmc': ['zcxsmc'],  #组成形式
                    'yyrq1': ['jyqsrq']  #核准日期
                }
                i = common.judge_keyword(i, dict_keyword)

                #如果没有 这个键变换参数再发请求
                if i.has_key("mclxmc") == False:
                    url_1 = "http://gsxt.gzgs.gov.cn/2016/query!searchData.shtml"
                    data_1 = {'c': '0', 't': '57'}
                    data_1['nbxh'] = list_
                    info_1 = get_html(url_1, data_1)
                    if info_1[0].has_key('mclxmc'):
                        i['mclxmc'] = info_1[0]['mclxmc']

            dict_ba_list = info
            dict_keyword = {
                'company_name': ['qymc'],  # 公司名称
                'check_type': ['mclxmc'],  # 续存
                'fund_cap': ['zczb'],  # 注册资本  #如果没有注册资本怎么办?
                'company_type': ['qylxmc'],  # 组织形式
                'authority': ['djjgmc'],  # 机关
                'check_date': ['hzrq'],  # 核准日期
                'locate': ['区域'],
                'owner': ['fddbr'],  #经营者
                'address': ['zs'],  #地址
                'reg_num': ['zch'],  # 注册号
                'business_area': ['jyfw'],  # 经营范围
                'start_date': ['clrq'],  #注册日期
                'business_from': ['yyrq1']  # 营业期限自
            }
            dict_ba_list = common.judge_keyword_1(dict_ba_list, dict_keyword)
            for li in dict_ba_list:
                if li.has_key("fund_cap") == False:
                    li["fund_cap"] = None
            return dict_ba_list
        else:
            return None
Exemple #3
0
 def branch_execute(self, list_):
     url = "http://gsxt.gzgs.gov.cn/2016/query!searchData.shtml"
     data = {'c': '0', 't': '9'}
     data['nbxh'] = list_[0]
     dict_ba_list = get_html(url, data)
     dict_keyword = {
         'company_num': ['fgszch'],
         'company_name': ['fgsmc'],
         'authority': ['fgsdjjgmc']
     }
     dict_ba_list = common.judge_keyword_1(dict_ba_list, dict_keyword)
     return dict_ba_list
Exemple #4
0
 def s_h_execute(self, list_):
     url = "http://gsxt.gzgs.gov.cn/2016/query!searchData.shtml"
     data = {'c': '2', 't': '3'}
     data['nbxh'] = list_[0]
     dict_ba_list = get_html(url, data)
     dict_keyword = {
         's_h_type': ['tzrlxmc'],
         's_h_name': ['czmc'],
         's_h_id_type': ['zzlxmc'],
         's_h_id': ['zzbh']
     }
     dict_ba_list = common.judge_keyword_1(dict_ba_list, dict_keyword)
     return dict_ba_list
Exemple #5
0
 def spot_check_execute(self, list_):
     url = "http://gsxt.gzgs.gov.cn/2016/query!searchData.shtml"
     data = {'c': '0', 't': '35'}
     data['nbxh'] = list_[0]
     dict_ba_list = get_html(url, data)
     dict_keyword = {
         'authority': ['ssjg'],
         'spot_type': ['cclx'],
         'spot_date': ['ccrq'],
         'spot_result': ['ccjg']
     }
     dict_ba_list = common.judge_keyword_1(dict_ba_list, dict_keyword)
     return dict_ba_list
Exemple #6
0
 def b_c_execute(self, list_):
     url = "http://gsxt.gzgs.gov.cn/2016/query!searchData.shtml"
     data = {'c': '0', 't': '3'}
     data['nbxh'] = list_[0]
     dict_ba_list = get_html(url, data)
     dict_keyword = {
         'reason': ['bcsxmc'],
         'date_to_changes': ['hzrq'],
         'before_changes': ['bcnr'],
         'after_changes': ['bghnr']
     }
     dict_ba_list = common.judge_keyword_1(dict_ba_list, dict_keyword)
     return dict_ba_list
Exemple #7
0
 def abnormal_execute(self, list_):
     url = "http://gsxt.gzgs.gov.cn/2016/query!searchData.shtml"
     data = {'c': '0', 't': '33'}
     data['nbxh'] = list_[0]
     dict_ba_list = get_html(url, data)
     dict_keyword = {
         'reason': ['lryy'],
         'date_occurred': ['lrrq'],
         'reason_out': ['ycyy'],
         'date_out': ['ycrq'],
         'authority': ['zcjdjg']
     }
     dict_ba_list = common.judge_keyword_1(dict_ba_list, dict_keyword)
     return dict_ba_list
 def spot_check_execute(self, list_):
     url = "http://gsxt.gzgs.gov.cn/2016/query!searchData.shtml"
     data = {'c': "0", 't': '35'}
     data["nbxh"] = list_
     dict_ba_list = get_html(url, data)
     dict_keyword = {
         'xuhao': [],
         'authority': ['ssjg'],  #机关
         'spot_type': ['cclx'],  #类型
         'spot_date': ['ccrq'],  #日期
         'spot_result': ['ccjg']  #结果
     }
     dict_ba_list = common.judge_keyword_1(dict_ba_list, dict_keyword)
     return dict_ba_list
 def b_c_execute(self, list_):
     url = 'http://gsxt.gzgs.gov.cn/2016/nzgs/query!searchData.shtml'
     data = {'c': '0', 't': '3'}
     data['nbxh'] = list_
     dict_ba_list = get_html(url, data)
     dict_keyword = {
         'xuhao': [],
         'reason': ['bcsxmc'],  #变更事项
         'date_to_changes': ['hzrq'],  #变更日期
         'before_changes': ['bcnr'],  #变更前
         'after_changes': ['bghnr']  #变更后
     }
     dict_ba_list = common.judge_keyword_1(dict_ba_list, dict_keyword)
     return dict_ba_list
Exemple #10
0
 def mortgage_basic_execute(self, list_):
     url = "http://gsxt.gzgs.gov.cn/2016/query!searchData.shtml"
     data = {'c': '0', 't': '25'}
     data['nbxh'] = list_[0]
     dict_ba_list = get_html(url, data)
     dict_keyword = {
         'mortgage_reg_num': ['djbh'],
         'date_reg': ['djrq'],
         'authority': ['djjgmc'],
         'amount': ['bdbse'],
         'status': ['zt']
     }
     dict_ba_list = common.judge_keyword_1(dict_ba_list, dict_keyword)
     return dict_ba_list
Exemple #11
0
 def c_mortgage_execute(self, list_i):
     url = "http://gsxt.gzgs.gov.cn/2016/frame/query!searchDcdy.shtml"
     data = {'c': '0', 't': '26'}
     data['dcnbxh'] = list_i
     dict_ba_list = get_html(url, data)
     dict_keyword = {
         'mortgage_reg_num': ['djbh'],
         'date_reg': ['djrq'],
         'authority': ['djjgmc'],
         'mortgage_type': ['bdbzl'],
         'amount': ['bdbse'],
         'time_range': ['qx'],
         'mortgage_range': ['dbfw']
     }
     dict_ba_list = common.judge_keyword_1(dict_ba_list, dict_keyword)
     return dict_ba_list
 def stockholder_change_execute(self, list_):
     url = "http://gsxt.gzgs.gov.cn/2016/nzgs/query!searchData.shtml"
     data = {'c': '0', 't': '23'}
     data["nbxh"] = list_
     info = get_html(url, data)
     dict_ba_list = info
     dict_keyword = {
         'xuhao': [],  #序号
         'person': ['gd'],  #股东
         'stock': ['bgqbl'],  #变更前比例
         'person_get': ['bghbl'],  #变更后比例
         'court': ['bgrq'],  #股权变更日期
         'detail': [],  #公示日期
     }
     dict_ba_list = common.judge_keyword_1(dict_ba_list, dict_keyword)
     return dict_ba_list
Exemple #13
0
 def basicinfo_execute(self, list_):
     url = "http://gsxt.gzgs.gov.cn/2016/query!searchData.shtml"
     data = {'c': '0', 't': '5'}
     data['nbxh'] = list_[0]
     info = get_html(url, data)
     if info == []:
         url = "http://gsxt.gzgs.gov.cn/2016/gtgsh/query!searchOldData.shtml"
         data = {'c': '1', 't': '1'}
         data['nbxh'] = list_[0]
         info = get_html(url, data)
     if info != []:
         for i in info:
             i['区域'] = '贵州'
             dict_keyword = {
                 '***': ['qymc', 'zhmc'],
                 'fddbr': ['jyzm'],
                 'qylxmc': ['zcxsmc'],
                 'yyrq1': ['jyqsrq']
             }
             i = common.judge_keyword(i, dict_keyword)
             if i.has_key('mclxmc') == False:
                 url_1 = "http://gsxt.gzgs.gov.cn/2016/query!searchData.shtml"
                 data_1 = {'c': '0', 't': '57'}
                 data_1['nbxh'] = list_[0]
                 info_1 = get_html(url_1, data_1)
                 if info_1[0].has_key('mclxmc'):
                     i['mclxmc'] = info_1[0]['mclxmc']
         dict_ba_list = info
         dict_keyword = {
             'company_name': ['qymc'],
             'reg_num': ['zch'],
             'owner': ['fddbr'],
             'address': ['zs'],
             'start_date': ['clrq'],
             'fund_cap': ['zczb'],
             'company_type': ['qylxmc'],
             'business_area': ['jyfw'],
             'check_type': ['mclxmc'],
             'authority': ['djjgmc'],
             'check_date': ['hzrq'],
             'business_from': ['yyrq1'],
             'locate': [u'区域']
         }
         dict_ba_list = common.judge_keyword_1(dict_ba_list, dict_keyword)
         return dict_ba_list
     else:
         return None
Exemple #14
0
 def mortgage_execute(self, list_i):
     url = "http://gsxt.gzgs.gov.cn/2016/frame/query!searchDcdy.shtml"
     data = {'c': '0', 't': '29'}
     data['dcnbxh'] = list_i
     dict_ba_list = get_html(url, data)
     for dict_ba in dict_ba_list:
         mortgage_reg_num = self.c_mortgage_execute(
             list_i)[0]['mortgage_reg_num']
         dict_ba['mortgage_reg_num'] = mortgage_reg_num
     dict_keyword = {
         'mortgage_name': ['mc'],
         'belongs': ['syq'],
         'information': ['xq'],
         'mortgage_range': ['bz']
     }
     dict_ba_list = common.judge_keyword_1(dict_ba_list, dict_keyword)
     return dict_ba_list
Exemple #15
0
 def s_creditor_execute(self, list_i):
     url = "http://gsxt.gzgs.gov.cn/2016/frame/query!searchDcdy.shtml"
     data = {'c': '0', 't': '28'}
     data['dcnbxh'] = list_i
     dict_ba_list = get_html(url, data)
     for dict_ba in dict_ba_list:
         mortgage_reg_num = self.c_mortgage_execute(
             list_i)[0]['mortgage_reg_num']
         dict_ba['mortgage_reg_num'] = mortgage_reg_num
     dict_keyword = {
         'mortgage_type': ['bdbzl'],
         'amount': ['bdbse'],
         'mortgage_range': ['dbfw'],
         'time_range': ['qx']
     }
     dict_ba_list = common.judge_keyword_1(dict_ba_list, dict_keyword)
     return dict_ba_list
Exemple #16
0
 def stockholder_change_execute(self, list_):
     url = "http://gsxt.gzgs.gov.cn/2016/nzgs/query!searchData.shtml"
     data = {'c': '0', 't': '23'}
     data['nbxh'] = list_[0]
     info = get_html(url, data)
     if info != []:
         for i in info:
             i['gd'] = u"【股权变更】股东:" + i['gd']
     dict_ba_list = info
     dict_keyword = {
         'reason': ['gd'],
         'date_to_changes': ['bgrq'],
         'before_changes': ['bgqbl'],
         'after_changes': ['bghbl']
     }
     dict_ba_list = common.judge_keyword_1(dict_ba_list, dict_keyword)
     return dict_ba_list
Exemple #17
0
 def pledge_execute(self, list_):
     url = "http://gsxt.gzgs.gov.cn/2016/query!searchData.shtml"
     data = {'c': '0', 't': '4'}
     data['nbxh'] = list_[0]
     dict_ba_list = get_html(url, data)
     dict_keyword = {
         'reg_code': ['djbh'],
         'pleder': ['czr'],
         'id_card': ['czzjhm'],
         'plede_amount': ['czgqse'],
         'brower': ['zqr'],
         'brower_id_card': ['zqzjhm'],
         'reg_date': ['czrq'],
         'staues': ['zt']
     }
     dict_ba_list = common.judge_keyword_1(dict_ba_list, dict_keyword)
     return dict_ba_list
 def mortgage_basic_execute(self, list_):
     url = "http://gsxt.gzgs.gov.cn/2016/query!searchData.shtml"
     data = {'c': 0, 't': 25}
     data["nbxh"] = list_
     dict_ba_list = get_html(url, data)
     dict_keyword = {
         'xuhao': [],
         'mortgage_reg_num': ['djbh'],
         'date_reg': ['djrq'],
         'authority': ['djjgmc'],
         'amount': ['bdbse'],
         'status': ['zt'],
         'gongshiriqi': [],
         'detail': []
     }
     dict_ba_list = common.judge_keyword_1(dict_ba_list, dict_keyword)
     return dict_ba_list
    def abnormal_execute(self, list_):
        # http://gz.gsxt.gov.cn/2016/nzgs/query!searchData.shtml
        url = "http://gz.gsxt.gov.cn/2016/nzgs/query!searchData.shtml"
        data = {'c': "0", 't': '33'}
        data["nbxh"] = list_
        dict_ba_list = get_html(url, data)

        dict_keyword = {
            'xuhao': [],
            'reason': ['lryy'],
            'date_occurred': ['lrrq'],
            'reason_out': ['ycyy'],
            'juedinglierujiguan': [''],
            'date_out': ['ycrq'],
            'authority': ['ycjg']
        }
        dict_ba_list = common.judge_keyword_1(dict_ba_list, dict_keyword)
        return dict_ba_list
Exemple #20
0
 def adm_punishment_execute(self, list_):
     url = "http://gsxt.gzgs.gov.cn/2016/query!searchData.shtml"
     data = {'c': '0', 't': '38'}
     data['nbxh'] = list_[0]
     info = get_html(url, data)
     if info == []:
         url = "http://gsxt.gzgs.gov.cn/2016/gtgsh/query!searchOldData.shtml"
         info = get_html(url, data)
     dict_ba_list = info
     dict_keyword = {
         'pun_number': ['cfjdsh'],
         'reason': ['wfxwlx'],
         'fines': ['xzcfnr'],
         'authirty': ['cfjg'],
         'pun_date': ['cfrq']
     }
     dict_ba_list = common.judge_keyword_1(dict_ba_list, dict_keyword)
     return dict_ba_list
Exemple #21
0
 def member_execute(self, list_):
     url = "http://gsxt.gzgs.gov.cn/2016/query!searchData.shtml"
     # url = "http://gsxt.gzgs.gov.cn/2016/gtgsh/query!searchData.shtml"
     data = {'c': '0', 't': '8'}
     data['nbxh'] = list_[0]
     info = get_html(url, data)
     if info == []:
         url = "http://gsxt.gzgs.gov.cn/2016/gtgsh/query!searchData.shtml"
         data['c'] = '1'
         data['t'] = '3'
         info = get_html(url, data)
     if info != []:
         for i in info:
             dict_keyword = {'xm': ['jyzm']}
             i = common.judge_keyword(i, dict_keyword)
     dict_ba_list = info
     dict_keyword = {'person_name': ['xm'], 'p_position': ['zwmc']}
     dict_ba_list = common.judge_keyword_1(dict_ba_list, dict_keyword)
     return dict_ba_list