コード例 #1
0
ファイル: c4_anhui_data.py プロジェクト: yuelinsoft/uf-spider
 def basicinfo_execute(self, pageSoup):
     br_keyword = [u"基本信息"]
     dict_ba = common.get_dict(pageSoup, br_keyword, class_="detailsList")
     if dict_ba != {}:
         dict_ba = common.basicinfo_dict(dict_ba, u'安徽')
     dict_ba_list = []
     dict_ba_list.append(dict_ba)
     return dict_ba_list
コード例 #2
0
ファイル: e3_hunan_data.py プロジェクト: yuelinsoft/uf-spider
 def basicinfo_execute(self, pageSoup):
     br_keyword = [u"基本信息"]
     dict_ba = common.get_dict(pageSoup,
                               br_keyword,
                               class_="info m-bottom m-top")
     if dict_ba != {}:
         dict_ba = common.basicinfo_dict(dict_ba, u'云南')
     dict_ba_list = []
     dict_ba_list.append(dict_ba)
     return dict_ba_list
コード例 #3
0
 def basicinfo_execute(self, list_):
     url1 = 'ztxy.do'
     data_dict0 = {'method': 'qyInfo', 'maent.entbigtype': list_[1]}
     pageSoup = get_html(url1, list_, data_dict0)
     dict_ba = get_dict(pageSoup, '', id='baseinfo')
     if dict_ba != {}:
         dict_ba = common.basicinfo_dict(dict_ba, u'新疆')
     dict_ba_list = []
     dict_ba_list.append(dict_ba)
     return dict_ba_list
コード例 #4
0
 def basicinfo_execute(self, list_):
     url = "http://gsxt.gzgs.gov.cn/2016/query!searchData.shtml"
     data = {'pageIndex': '0', 'pageSize': '5'}
     data['nbxh'] = list_[0]
     info = get_html(url, data)
     if info == []:
         url = "http://gsxt.gzgs.gov.cn/2016/gtgsh/query!searchOldData.shtml"
         data = {'pageIndex': '1', 'pageSize': '1'}
         data['nbxh'] = list_[0]
         info = get_html(url, data)
     if info != []:
         for i in info:
             i = common.basicinfo_dict(i, u'江西')
     dict_ba_list = info
     return dict_ba_list