提交 6c3cdb3a 作者: 薛凌堃

REITs政策法规

上级 b7fa3199
...@@ -14,7 +14,7 @@ log = baseCore.getLogger() ...@@ -14,7 +14,7 @@ log = baseCore.getLogger()
from reits import Policy from reits import Policy
policy = Policy() policy = Policy()
topic = 'policy' topic = 'research_center_fourth'
webname = '上海证券交易所REITs' webname = '上海证券交易所REITs'
headers = { headers = {
'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7', 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7',
...@@ -111,14 +111,17 @@ def doJob(): ...@@ -111,14 +111,17 @@ def doJob():
summary = '' summary = ''
pub_hao, content, id_list, contentWithTag = getContent(href, publishDate, num, id_list) pub_hao, content, id_list, contentWithTag = getContent(href, publishDate, num, id_list)
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': '1729317767726682113',
'lang': lang,
'author': '', 'author': '',
'content': content, 'content': content,
'contentWithTag': str(contentWithTag), 'contentWithTag': str(contentWithTag),
'deleteFlag': 0, 'deleteFlag': 0,
'checkStatus': 1, 'checkStatus': 1,
'id': '', 'id': '1729317767726682113'+str(int(time.time())),
'title': title, 'title': title,
'publishDate': publishDate, 'publishDate': publishDate,
'origin': origin, 'origin': origin,
......
...@@ -8,7 +8,7 @@ import BaseCore ...@@ -8,7 +8,7 @@ import BaseCore
from reits import Policy from reits import Policy
policy = Policy() policy = Policy()
topic = 'policy' topic = 'research_center_fourth'
webname = '深圳证券交易所REITs' webname = '深圳证券交易所REITs'
baseCore = BaseCore.BaseCore() baseCore = BaseCore.BaseCore()
log = baseCore.getLogger() log = baseCore.getLogger()
...@@ -73,14 +73,17 @@ def doJob(): ...@@ -73,14 +73,17 @@ def doJob():
summary = '' summary = ''
pub_hao, content, id_list, contentWithTag = getContent(href, publishDate, num, id_list) pub_hao, content, id_list, contentWithTag = getContent(href, publishDate, num, id_list)
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': '1729317767726682113',
'lang': lang,
'author': '', 'author': '',
'content': content, 'content': content,
'contentWithTag': str(contentWithTag), 'contentWithTag': str(contentWithTag),
'deleteFlag': 0, 'deleteFlag': 0,
'checkStatus': 1, 'checkStatus': 1,
'id': '', 'id': '1729317767726682113'+str(int(time.time())),
'title': title, 'title': title,
'publishDate': publishDate, 'publishDate': publishDate,
'origin': origin, 'origin': origin,
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论