提交 b7fa3199 作者: 薛凌堃

REITs政策法规

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