提交 f4888643 作者: 薛凌堃

证监会公告脚本调整

上级 7bc6080a
import json import json
...@@ -253,7 +253,7 @@ def ifInstert(short_name, social_code, pdf_url): ...@@ -253,7 +253,7 @@ def ifInstert(short_name, social_code, pdf_url):
else: else:
return ifexist return ifexist
def InsterInto(social_code, pdf_url,pub_time,pdf_name): def InsterInto(social_code, pdf_url,pub_time,pdf_name,content):
insert = False insert = False
# 信息插入数据库 # 信息插入数据库
try: try:
...@@ -265,7 +265,7 @@ def InsterInto(social_code, pdf_url,pub_time,pdf_name): ...@@ -265,7 +265,7 @@ def InsterInto(social_code, pdf_url,pub_time,pdf_name):
'证监会', '证监会',
'1', '1',
pub_time, pub_time,
pdf_name, pdf_name
] ]
#144数据库 #144数据库
cursor.execute(insert_sql, tuple(list_info)) cursor.execute(insert_sql, tuple(list_info))
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论