Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
Z
zzsn_spider
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
王景浩
zzsn_spider
Commits
c702fb7b
提交
c702fb7b
authored
11月 28, 2023
作者:
薛凌堃
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
语言判断
上级
09af6b88
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
15 行增加
和
9 行删除
+15
-9
东方财富网-公告.py
comData/noticeReport/东方财富网-公告.py
+5
-3
东方财富网-港股公告.py
comData/noticeReport/东方财富网-港股公告.py
+5
-3
证监会-公告.py
comData/noticeReport/证监会-公告.py
+5
-3
没有找到文件。
comData/noticeReport/东方财富网-公告.py
浏览文件 @
c702fb7b
impor
t
os
impor
t
os
...
@@ -192,7 +192,9 @@ def GetContent(pdf_url,info_url, pdf_name, social_code, year, pub_time, start_ti
...
@@ -192,7 +192,9 @@ def GetContent(pdf_url,info_url, pdf_name, social_code, year, pub_time, start_ti
else
:
else
:
return
False
return
False
content
=
retData
[
'content'
]
content
=
retData
[
'content'
]
lang
=
baseCore
.
detect_language
(
content
)
if
lang
==
'cn'
:
lang
=
'zh'
time_now
=
time
.
strftime
(
"
%
Y-
%
m-
%
d
%
H:
%
M:
%
S"
,
time
.
localtime
())
time_now
=
time
.
strftime
(
"
%
Y-
%
m-
%
d
%
H:
%
M:
%
S"
,
time
.
localtime
())
dic_news
=
{
dic_news
=
{
'attachmentIds'
:
att_id
,
'attachmentIds'
:
att_id
,
...
@@ -203,7 +205,7 @@ def GetContent(pdf_url,info_url, pdf_name, social_code, year, pub_time, start_ti
...
@@ -203,7 +205,7 @@ def GetContent(pdf_url,info_url, pdf_name, social_code, year, pub_time, start_ti
'deleteFlag'
:
'0'
,
'deleteFlag'
:
'0'
,
'id'
:
''
,
'id'
:
''
,
'keyWords'
:
''
,
'keyWords'
:
''
,
'lang'
:
'zh'
,
'lang'
:
lang
,
'origin'
:
'东方财富网'
,
'origin'
:
'东方财富网'
,
'publishDate'
:
pub_time
,
'publishDate'
:
pub_time
,
'sid'
:
'1684032033495392257'
,
'sid'
:
'1684032033495392257'
,
...
...
comData/noticeReport/东方财富网-港股公告.py
浏览文件 @
c702fb7b
impor
t
os
impor
t
os
...
@@ -278,7 +278,9 @@ def spider(browser, code, social_code, com_name):
...
@@ -278,7 +278,9 @@ def spider(browser, code, social_code, com_name):
att_id
=
''
att_id
=
''
browser2
.
quit
()
browser2
.
quit
()
lang
=
baseCore
.
detect_language
(
content
)
if
lang
==
'cn'
:
lang
=
'zh'
time_now
=
time
.
strftime
(
"
%
Y-
%
m-
%
d
%
H:
%
M:
%
S"
,
time
.
localtime
())
time_now
=
time
.
strftime
(
"
%
Y-
%
m-
%
d
%
H:
%
M:
%
S"
,
time
.
localtime
())
dic_news
=
{
dic_news
=
{
'attachmentIds'
:
att_id
,
'attachmentIds'
:
att_id
,
...
@@ -289,7 +291,7 @@ def spider(browser, code, social_code, com_name):
...
@@ -289,7 +291,7 @@ def spider(browser, code, social_code, com_name):
'deleteFlag'
:
'0'
,
'deleteFlag'
:
'0'
,
'id'
:
''
,
'id'
:
''
,
'keyWords'
:
''
,
'keyWords'
:
''
,
'lang'
:
'zh'
,
'lang'
:
lang
,
'origin'
:
'东方财富网'
,
'origin'
:
'东方财富网'
,
'publishDate'
:
publishDate
,
'publishDate'
:
publishDate
,
'sid'
:
'1684032033495392257'
,
'sid'
:
'1684032033495392257'
,
...
...
comData/noticeReport/证监会-公告.py
浏览文件 @
c702fb7b
...
@@ -308,7 +308,9 @@ def GetContent(pdf_url, pdf_name, social_code, year, pub_time, start_time,com_na
...
@@ -308,7 +308,9 @@ def GetContent(pdf_url, pdf_name, social_code, year, pub_time, start_time,com_na
else
:
else
:
return
False
return
False
content
=
retData
[
'content'
]
content
=
retData
[
'content'
]
lang
=
baseCore
.
detect_language
(
content
)
if
lang
==
'cn'
:
lang
=
'zh'
time_now
=
time
.
strftime
(
"
%
Y-
%
m-
%
d
%
H:
%
M:
%
S"
,
time
.
localtime
())
time_now
=
time
.
strftime
(
"
%
Y-
%
m-
%
d
%
H:
%
M:
%
S"
,
time
.
localtime
())
dic_news
=
{
dic_news
=
{
'attachmentIds'
:
att_id
,
'attachmentIds'
:
att_id
,
...
@@ -319,7 +321,7 @@ def GetContent(pdf_url, pdf_name, social_code, year, pub_time, start_time,com_na
...
@@ -319,7 +321,7 @@ def GetContent(pdf_url, pdf_name, social_code, year, pub_time, start_time,com_na
'deleteFlag'
:
'0'
,
'deleteFlag'
:
'0'
,
'id'
:
''
,
'id'
:
''
,
'keyWords'
:
''
,
'keyWords'
:
''
,
'lang'
:
'zh'
,
'lang'
:
lang
,
'origin'
:
origin
,
'origin'
:
origin
,
'publishDate'
:
pub_time
,
'publishDate'
:
pub_time
,
'sid'
:
'1684032033495392257'
,
'sid'
:
'1684032033495392257'
,
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论