提交 6c3cdb3a 作者: 薛凌堃

REITs政策法规

上级 b7fa3199
......@@ -14,7 +14,7 @@ log = baseCore.getLogger()
from reits import Policy
policy = Policy()
topic = 'policy'
topic = 'research_center_fourth'
webname = '上海证券交易所REITs'
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',
......@@ -111,14 +111,17 @@ def doJob():
summary = ''
pub_hao, content, id_list, contentWithTag = getContent(href, publishDate, num, id_list)
time_now = time.strftime("%Y-%m-%d %H:%M:%S", time.localtime())
lang = baseCore.detect_language(content)
dic_info = {
'attachmentIds': id_list,
'subjectId': '1729317767726682113',
'lang': lang,
'author': '',
'content': content,
'contentWithTag': str(contentWithTag),
'deleteFlag': 0,
'checkStatus': 1,
'id': '',
'id': '1729317767726682113'+str(int(time.time())),
'title': title,
'publishDate': publishDate,
'origin': origin,
......
......@@ -8,7 +8,7 @@ import BaseCore
from reits import Policy
policy = Policy()
topic = 'policy'
topic = 'research_center_fourth'
webname = '深圳证券交易所REITs'
baseCore = BaseCore.BaseCore()
log = baseCore.getLogger()
......@@ -73,14 +73,17 @@ def doJob():
summary = ''
pub_hao, content, id_list, contentWithTag = getContent(href, publishDate, num, id_list)
time_now = time.strftime("%Y-%m-%d %H:%M:%S", time.localtime())
lang = baseCore.detect_language(content)
dic_info = {
'attachmentIds': id_list,
'subjectId': '1729317767726682113',
'lang': lang,
'author': '',
'content': content,
'contentWithTag': str(contentWithTag),
'deleteFlag': 0,
'checkStatus': 1,
'id': '',
'id': '1729317767726682113'+str(int(time.time())),
'title': title,
'publishDate': publishDate,
'origin': origin,
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论