提交 82652d12 作者: 薛凌堃

REITs政策法规

上级 889780de
......@@ -12,7 +12,7 @@ from reits import Policy
policy = Policy()
topic = 'policy'
topic = 'research_center_fourth'
webname = '中华人民共和国中央人民政府'
headers = {
'Accept': 'application/json, text/plain, */*',
......@@ -150,14 +150,17 @@ def getData(data_, num):
summary = BeautifulSoup(summary, 'lxml').text.lstrip().strip()
content, id_list, contentWithTag, organ = getContent(href, publishDate, num, organ, 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': '1729021803283533825',
'lang': lang,
'author': '',
'content': content,
'contentWithTag': str(contentWithTag),
'deleteFlag': 0,
'checkStatus': 1,
'id': '',
'id': '1729021803283533825'+str(int(time.time())),
'title': title,
'publishDate': publishDate,
'origin': origin,
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论