Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
Z
zzsn_spider
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
1
合并请求
1
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
丁双波
zzsn_spider
Commits
9e1c5656
提交
9e1c5656
authored
3月 21, 2024
作者:
薛凌堃
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
REITs政策法规
上级
b3fa91e8
显示空白字符变更
内嵌
并排
正在显示
21 个修改的文件
包含
22 行增加
和
25 行删除
+22
-25
policy_beijing.py
REITs_policyData/policy_beijing.py
+1
-1
policy_chongqing.py
REITs_policyData/policy_chongqing.py
+1
-1
policy_fujian.py
REITs_policyData/policy_fujian.py
+1
-1
policy_guangdong.py
REITs_policyData/policy_guangdong.py
+1
-1
policy_guangxi.py
REITs_policyData/policy_guangxi.py
+1
-1
policy_hainan.py
REITs_policyData/policy_hainan.py
+1
-1
policy_heilongjiang.py
REITs_policyData/policy_heilongjiang.py
+1
-1
policy_hubei.py
REITs_policyData/policy_hubei.py
+1
-1
policy_jiangsu.py
REITs_policyData/policy_jiangsu.py
+1
-1
policy_jiangxi.py
REITs_policyData/policy_jiangxi.py
+1
-1
policy_jilin.py
REITs_policyData/policy_jilin.py
+1
-1
policy_liaoning.py
REITs_policyData/policy_liaoning.py
+1
-1
policy_neimenggu.py
REITs_policyData/policy_neimenggu.py
+1
-1
policy_shandong.py
REITs_policyData/policy_shandong.py
+1
-1
policy_shanghai.py
REITs_policyData/policy_shanghai.py
+1
-1
policy_shanxi.py
REITs_policyData/policy_shanxi.py
+1
-1
policy_sichuan.py
REITs_policyData/policy_sichuan.py
+1
-1
policy_tianjin.py
REITs_policyData/policy_tianjin.py
+1
-1
policy_yunnan.py
REITs_policyData/policy_yunnan.py
+2
-5
policy_zhejiang.py
REITs_policyData/policy_zhejiang.py
+1
-1
reits.py
REITs_policyData/reits.py
+1
-1
没有找到文件。
REITs_policyData/policy_beijing.py
浏览文件 @
9e1c5656
...
@@ -16,7 +16,7 @@ policy = Policy()
...
@@ -16,7 +16,7 @@ policy = Policy()
topic
=
'research_center_fourth'
topic
=
'research_center_fourth'
webname
=
'北京市人民政府
_
'
webname
=
'北京市人民政府'
class
Policy1
():
class
Policy1
():
@retry
(
tries
=
3
,
delay
=
10
)
@retry
(
tries
=
3
,
delay
=
10
)
...
...
REITs_policyData/policy_chongqing.py
浏览文件 @
9e1c5656
...
@@ -14,7 +14,7 @@ policy = Policy()
...
@@ -14,7 +14,7 @@ policy = Policy()
topic
=
'research_center_fourth'
topic
=
'research_center_fourth'
webname
=
'重庆市人民政府
_
'
webname
=
'重庆市人民政府'
headers
=
{
headers
=
{
'Content-Type'
:
'application/json'
,
'Content-Type'
:
'application/json'
,
'User-Agent'
:
'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36 Edg/119.0.0.0'
,
'User-Agent'
:
'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36 Edg/119.0.0.0'
,
...
...
REITs_policyData/policy_fujian.py
浏览文件 @
9e1c5656
...
@@ -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
=
'research_center_fourth'
topic
=
'research_center_fourth'
webname
=
'福建省人民政府
_
'
webname
=
'福建省人民政府'
headers
=
{
headers
=
{
'User-Agent'
:
'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36 Edg/119.0.0.0'
,
'User-Agent'
:
'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36 Edg/119.0.0.0'
,
'X-Requested-With'
:
'XMLHttpRequest'
,
'X-Requested-With'
:
'XMLHttpRequest'
,
...
...
REITs_policyData/policy_guangdong.py
浏览文件 @
9e1c5656
...
@@ -20,7 +20,7 @@ policy = Policy()
...
@@ -20,7 +20,7 @@ policy = Policy()
topic
=
'research_center_fourth'
topic
=
'research_center_fourth'
webname
=
'广东省人民政府
_
'
webname
=
'广东省人民政府'
headers
=
{
headers
=
{
'Content-Type'
:
'application/json'
,
'Content-Type'
:
'application/json'
,
'User-Agent'
:
'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36'
,
'User-Agent'
:
'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36'
,
...
...
REITs_policyData/policy_guangxi.py
浏览文件 @
9e1c5656
...
@@ -16,7 +16,7 @@ from reits import Policy
...
@@ -16,7 +16,7 @@ from reits import Policy
policy
=
Policy
()
policy
=
Policy
()
topic
=
'research_center_fourth'
topic
=
'research_center_fourth'
webname
=
'广西壮族自治区人民政府
_
'
webname
=
'广西壮族自治区人民政府'
headers
=
{
headers
=
{
'User-Agent'
:
'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36 Edg/119.0.0.0'
,
'User-Agent'
:
'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36 Edg/119.0.0.0'
,
'Content-Type'
:
'application/json'
,
'Content-Type'
:
'application/json'
,
...
...
REITs_policyData/policy_hainan.py
浏览文件 @
9e1c5656
...
@@ -18,7 +18,7 @@ policy = Policy()
...
@@ -18,7 +18,7 @@ policy = Policy()
topic
=
'research_center_fourth'
topic
=
'research_center_fourth'
webname
=
'海南省人民政府
_
'
webname
=
'海南省人民政府'
headers
=
{
headers
=
{
'User-Agent'
:
'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36 Edg/119.0.0.0'
,
'User-Agent'
:
'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36 Edg/119.0.0.0'
,
...
...
REITs_policyData/policy_heilongjiang.py
浏览文件 @
9e1c5656
...
@@ -14,7 +14,7 @@ from reits import Policy
...
@@ -14,7 +14,7 @@ from reits import Policy
policy
=
Policy
()
policy
=
Policy
()
topic
=
'research_center_fourth'
topic
=
'research_center_fourth'
webname
=
'黑龙江省人民政府
_
'
webname
=
'黑龙江省人民政府'
headers
=
{
headers
=
{
'Content-Type'
:
'application/x-www-form-urlencoded'
,
'Content-Type'
:
'application/x-www-form-urlencoded'
,
'Token'
:
'b946cd4e-77a4-42f5-bcaf-a9c4f26b5191'
,
'Token'
:
'b946cd4e-77a4-42f5-bcaf-a9c4f26b5191'
,
...
...
REITs_policyData/policy_hubei.py
浏览文件 @
9e1c5656
...
@@ -22,7 +22,7 @@ policy = Policy()
...
@@ -22,7 +22,7 @@ policy = Policy()
topic
=
'research_center_fourth'
topic
=
'research_center_fourth'
webname
=
'湖北省人民政府
_
'
webname
=
'湖北省人民政府'
headers
=
{
headers
=
{
'User-Agent'
:
'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36 Edg/119.0.0.0'
,
'User-Agent'
:
'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36 Edg/119.0.0.0'
,
}
}
...
...
REITs_policyData/policy_jiangsu.py
浏览文件 @
9e1c5656
...
@@ -18,7 +18,7 @@ policy = Policy()
...
@@ -18,7 +18,7 @@ policy = Policy()
topic
=
'research_center_fourth'
topic
=
'research_center_fourth'
webname
=
'江苏省人民政府
_
'
webname
=
'江苏省人民政府'
headers
=
{
headers
=
{
'User-Agent'
:
'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36 Edg/119.0.0.0'
,
'User-Agent'
:
'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36 Edg/119.0.0.0'
,
...
...
REITs_policyData/policy_jiangxi.py
浏览文件 @
9e1c5656
...
@@ -16,7 +16,7 @@ policy = Policy()
...
@@ -16,7 +16,7 @@ policy = Policy()
topic
=
'research_center_fourth'
topic
=
'research_center_fourth'
webname
=
'江西省人民政府
_
'
webname
=
'江西省人民政府'
headers
=
{
headers
=
{
'User-Agent'
:
'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36 Edg/119.0.0.0'
,
'User-Agent'
:
'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36 Edg/119.0.0.0'
,
'X-Requested-With'
:
'XMLHttpRequest'
,
'X-Requested-With'
:
'XMLHttpRequest'
,
...
...
REITs_policyData/policy_jilin.py
浏览文件 @
9e1c5656
...
@@ -15,7 +15,7 @@ policy = Policy()
...
@@ -15,7 +15,7 @@ policy = Policy()
topic
=
'research_center_fourth'
topic
=
'research_center_fourth'
webname
=
'吉林市人民政府
_
'
webname
=
'吉林市人民政府'
headers
=
{
headers
=
{
'Content-Type'
:
'application/x-www-form-urlencoded; charset=UTF-8'
,
'Content-Type'
:
'application/x-www-form-urlencoded; charset=UTF-8'
,
'User-Agent'
:
'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36 Edg/119.0.0.0'
,
'User-Agent'
:
'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36 Edg/119.0.0.0'
,
...
...
REITs_policyData/policy_liaoning.py
浏览文件 @
9e1c5656
...
@@ -16,7 +16,7 @@ policy = Policy()
...
@@ -16,7 +16,7 @@ policy = Policy()
topic
=
'research_center_fourth'
topic
=
'research_center_fourth'
webname
=
'辽宁省人民政府
_
'
webname
=
'辽宁省人民政府'
headers
=
{
headers
=
{
'User_Agent'
:
'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36 Edg/119.0.0.0'
'User_Agent'
:
'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36 Edg/119.0.0.0'
}
}
...
...
REITs_policyData/policy_neimenggu.py
浏览文件 @
9e1c5656
...
@@ -16,7 +16,7 @@ policy = Policy()
...
@@ -16,7 +16,7 @@ policy = Policy()
topic
=
'research_center_fourth'
topic
=
'research_center_fourth'
webname
=
'内蒙古自治区人民政府
_
'
webname
=
'内蒙古自治区人民政府'
headers
=
{
headers
=
{
'Accept'
:
'application/json, text/plain, */*'
,
'Accept'
:
'application/json, text/plain, */*'
,
'Accept-Encoding'
:
'gzip, deflate, br'
,
'Accept-Encoding'
:
'gzip, deflate, br'
,
...
...
REITs_policyData/policy_shandong.py
浏览文件 @
9e1c5656
...
@@ -12,7 +12,7 @@ from reits import Policy
...
@@ -12,7 +12,7 @@ from reits import Policy
policy
=
Policy
()
policy
=
Policy
()
topic
=
'research_center_fourth'
topic
=
'research_center_fourth'
webname
=
'山东省人民政府
_
'
webname
=
'山东省人民政府'
headers
=
{
headers
=
{
'User-Agent'
:
'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36 Edg/119.0.0.0'
,
'User-Agent'
:
'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36 Edg/119.0.0.0'
,
'X-Requested-With'
:
'XMLHttpRequest'
,
'X-Requested-With'
:
'XMLHttpRequest'
,
...
...
REITs_policyData/policy_shanghai.py
浏览文件 @
9e1c5656
...
@@ -18,7 +18,7 @@ policy = Policy()
...
@@ -18,7 +18,7 @@ policy = Policy()
topic
=
'research_center_fourth'
topic
=
'research_center_fourth'
webname
=
'上海市人民政府
_
'
webname
=
'上海市人民政府'
headers
=
{
headers
=
{
'Accept'
:
'*/*'
,
'Accept'
:
'*/*'
,
'Accept-Encoding'
:
'gzip, deflate, br'
,
'Accept-Encoding'
:
'gzip, deflate, br'
,
...
...
REITs_policyData/policy_shanxi.py
浏览文件 @
9e1c5656
...
@@ -15,7 +15,7 @@ policy = Policy()
...
@@ -15,7 +15,7 @@ policy = Policy()
topic
=
'research_center_fourth'
topic
=
'research_center_fourth'
webname
=
'山西省人民政府
_
'
webname
=
'山西省人民政府'
headers
=
{
headers
=
{
'Accept'
:
'application/json, text/plain, */*'
,
'Accept'
:
'application/json, text/plain, */*'
,
'Accept-Encoding'
:
'gzip, deflate'
,
'Accept-Encoding'
:
'gzip, deflate'
,
...
...
REITs_policyData/policy_sichuan.py
浏览文件 @
9e1c5656
...
@@ -15,7 +15,7 @@ from reits import Policy
...
@@ -15,7 +15,7 @@ from reits import Policy
policy
=
Policy
()
policy
=
Policy
()
topic
=
'research_center_fourth'
topic
=
'research_center_fourth'
webname
=
'四川省人民政府
_
'
webname
=
'四川省人民政府'
headers
=
{
headers
=
{
'Content-Type'
:
'application/x-www-form-urlencoded; charset=UTF-8'
,
'Content-Type'
:
'application/x-www-form-urlencoded; charset=UTF-8'
,
'User-Agent'
:
'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36 Edg/119.0.0.0'
,
'User-Agent'
:
'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36 Edg/119.0.0.0'
,
...
...
REITs_policyData/policy_tianjin.py
浏览文件 @
9e1c5656
...
@@ -17,7 +17,7 @@ policy = Policy()
...
@@ -17,7 +17,7 @@ policy = Policy()
topic
=
'research_center_fourth'
topic
=
'research_center_fourth'
webname
=
'天津市人民政府
_
'
webname
=
'天津市人民政府'
import
urllib3
import
urllib3
urllib3
.
disable_warnings
(
urllib3
.
exceptions
.
InsecureRequestWarning
)
urllib3
.
disable_warnings
(
urllib3
.
exceptions
.
InsecureRequestWarning
)
...
...
REITs_policyData/policy_yunnan.py
浏览文件 @
9e1c5656
...
@@ -20,7 +20,7 @@ policy = Policy()
...
@@ -20,7 +20,7 @@ policy = Policy()
topic
=
'research_center_fourth'
topic
=
'research_center_fourth'
webname
=
'云南省人民政府
_
'
webname
=
'云南省人民政府'
headers
=
{
headers
=
{
'User-Agent'
:
'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36 Edg/119.0.0.0'
,
'User-Agent'
:
'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36 Edg/119.0.0.0'
,
}
}
...
@@ -149,17 +149,14 @@ def getData(div, num):
...
@@ -149,17 +149,14 @@ def getData(div, num):
content
,
contentWithTag
,
id_list
=
getContent
(
href
,
publishDate
,
num
)
content
,
contentWithTag
,
id_list
=
getContent
(
href
,
publishDate
,
num
)
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'
:
'
1729315113088765953'
+
str
(
int
(
time
.
time
()))
,
'id'
:
'
'
,
'title'
:
title
,
'title'
:
title
,
'publishDate'
:
publishDate
,
'publishDate'
:
publishDate
,
'origin'
:
origin
,
'origin'
:
origin
,
...
...
REITs_policyData/policy_zhejiang.py
浏览文件 @
9e1c5656
...
@@ -17,7 +17,7 @@ headers = {
...
@@ -17,7 +17,7 @@ headers = {
}
}
topic
=
'research_center_fourth'
topic
=
'research_center_fourth'
webname
=
'浙江省人民政府
_
'
webname
=
'浙江省人民政府'
class
Policy
():
class
Policy
():
def
getrequest_soup
(
self
,
headers
,
url
):
def
getrequest_soup
(
self
,
headers
,
url
):
...
...
REITs_policyData/reits.py
浏览文件 @
9e1c5656
...
@@ -19,7 +19,7 @@ import BaseCore
...
@@ -19,7 +19,7 @@ import BaseCore
baseCore
=
BaseCore
.
BaseCore
()
baseCore
=
BaseCore
.
BaseCore
()
log
=
baseCore
.
getLogger
()
log
=
baseCore
.
getLogger
()
filepath
=
"data/"
filepath
=
"data/"
topic
=
'
policy
'
topic
=
'
research_center_fourth
'
class
Policy
():
class
Policy
():
def
getrequest_soup
(
self
,
headers
,
url
):
def
getrequest_soup
(
self
,
headers
,
url
):
req
=
requests
.
get
(
headers
=
headers
,
url
=
url
)
req
=
requests
.
get
(
headers
=
headers
,
url
=
url
)
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论