提交 82652d12 作者: 薛凌堃

REITs政策法规

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