|
@@ -104,7 +104,7 @@ class Cninfo(object):
|
|
"退市整理期": "category_tszlq_szsh"
|
|
"退市整理期": "category_tszlq_szsh"
|
|
}
|
|
}
|
|
for key, value in category_map.items():
|
|
for key, value in category_map.items():
|
|
- print(f"正在下载 {date} {key} 数据...")
|
|
|
|
|
|
+ print(f"正在获取 {date} {key} 数据...")
|
|
response_test = self.get_report(page_num, date, value)
|
|
response_test = self.get_report(page_num, date, value)
|
|
data_test = response_test.json()
|
|
data_test = response_test.json()
|
|
total_pages = data_test["totalpages"]
|
|
total_pages = data_test["totalpages"]
|
|
@@ -209,9 +209,9 @@ class Cninfo(object):
|
|
|
|
|
|
worksheet.append([company_code, company_name, title, tmp_year, announcement_url])
|
|
worksheet.append([company_code, company_name, title, tmp_year, announcement_url])
|
|
#注意:年报默认保存在代码同级目录下,如需调整请修改此处的路径,请自行创建文件夹并填入路径
|
|
#注意:年报默认保存在代码同级目录下,如需调整请修改此处的路径,请自行创建文件夹并填入路径
|
|
- workbook.save(f"股东大会公告链接_{tmp_year}.xlsx")
|
|
|
|
|
|
+ workbook.save(f"股东大会公告链接_{year}.xlsx")
|
|
|
|
|
|
- print(f"----{tmp_year}年下载完成")
|
|
|
|
|
|
+ print(f"----{year}年获取完成")
|
|
|
|
|
|
|
|
|
|
def remove_dump(self):
|
|
def remove_dump(self):
|
|
@@ -270,5 +270,5 @@ class Cninfo(object):
|
|
|
|
|
|
if __name__ == "__main__":
|
|
if __name__ == "__main__":
|
|
cninfo = Cninfo()
|
|
cninfo = Cninfo()
|
|
- # cninfo.run()
|
|
|
|
- cninfo.download()
|
|
|
|
|
|
+ cninfo.run()
|
|
|
|
+ # cninfo.download()
|