提交 b7fa3199 作者: 薛凌堃

REITs政策法规

上级 35144902
......@@ -280,14 +280,17 @@ def reform():
contentWithTag_str = str(contentWithTag)
time_now = time.strftime("%Y-%m-%d %H:%M:%S", time.localtime())
lang = baseCore.detect_language(content)
dic_info = {
'attachmentIds': id_list,
'subjectId': '1729021803283533825',
'lang': lang,
'author': '',
'content': content,
'contentWithTag': contentWithTag_str,
'deleteFlag': 0,
'checkStatus': 1,
'id': '',
'id': '1729021803283533825'+str(int(time.time())),
'title': title,
'publishDate': publishDate_,
'origin': source,
......@@ -418,14 +421,17 @@ def zhengquanqihuo():
contentWithTag_str = str(contentWithTag)
time_now = time.strftime("%Y-%m-%d %H:%M:%S", time.localtime())
lang = baseCore.detect_language(content)
dic_info = {
'attachmentIds': id_list,
'subjectId': '1729021803283533825',
'lang': lang,
'author': '',
'content': content,
'contentWithTag': contentWithTag_str,
'deleteFlag': 0,
'checkStatus': 1,
'id': '',
'id': '1729021803283533825'+str(int(time.time())),
'title': title,
'publishDate': publishDate,
'origin': source,
......@@ -537,15 +543,17 @@ def sse():
if att_id:
id_list.append(att_id)
time_now = time.strftime("%Y-%m-%d %H:%M:%S", time.localtime())
lang = baseCore.detect_language(content)
dic_info = {
'attachmentIds':id_list,
'subjectId': '1729021803283533825',
'lang': lang,
'author': '',
'content': content,
'contentWithTag': '',
'deleteFlag': 0,
'checkStatus': 1,
'id': '',
'id': '1729021803283533825'+str(int(time.time())),
'title': title,
'publishDate': publishDate,
'origin': source,
......@@ -606,16 +614,18 @@ def sse():
contentWithTag_str = str(contentWithTag)
# print(contentWithTag_str)
lang = baseCore.detect_language(content)
time_now = time.strftime("%Y-%m-%d %H:%M:%S", time.localtime())
dic_info = {
'attachmentIds':id_list,
'subjectId': '1729021803283533825',
'lang': lang,
'author': '',
'content': content,
'contentWithTag': contentWithTag_str,
'deleteFlag': 0,
'checkStatus': 1,
'id': '',
'id': '1729021803283533825'+str(int(time.time())),
'title': title,
'publishDate': publishDate,
'origin': source,
......@@ -828,13 +838,16 @@ def hebei():
if content == '':
continue
time_now = time.strftime("%Y-%m-%d %H:%M:%S", time.localtime())
lang = baseCore.detect_language(content)
dic_info = {
'attachmentIds':id_list,
'subjectId': '1729315113088765953',
'lang': lang,
'author': '',
'content': content,
'checkStatus': 1,
'deleteFlag': 0,
'id': '',
'id': '1729315113088765953'+str(int(time.time())),
'contentWithTag': contentWithTag_str,
'title': title.replace('\n', ''),
'publishDate': publishDate,
......@@ -942,14 +955,17 @@ def guizhou():
contentWithTag_str = str(contentWithTag)
time_now = time.strftime("%Y-%m-%d %H:%M:%S", time.localtime())
lang = baseCore.detect_language(content)
dic_info = {
'attachmentIds':id_list,
'subjectId': '1729315113088765953',
'lang': lang,
'author': '',
'content': content,
'contentWithTag': contentWithTag_str,
'deleteFlag': 0,
'checkStatus': 1,
'id': '',
'id': '1729315113088765953'+str(int(time.time())),
'title': title.replace('\n', ''),
'publishDate': publishDate,
'source': source,
......@@ -979,14 +995,14 @@ def guizhou():
if __name__=="__main__":
# file_path = f'data/REITs贵州省人民政府.xlsx'
# wb = policy.createfile(file_path)
# reform()
# # shenzhen()
# zhengquanqihuo()
reform()
# shenzhen()
zhengquanqihuo()
try:
sse()
except:
pass
# hebei()
# guizhou()
hebei()
guizhou()
# zhengquanqihuo()
\ No newline at end of file
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论