Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
Z
zzsn_spider
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
王景浩
zzsn_spider
Commits
734b4ae2
提交
734b4ae2
authored
8月 15, 2023
作者:
LiuLiYuan
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
雅虎企业动态
上级
caa3a936
显示空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
7 行增加
和
4 行删除
+7
-4
雅虎财经_企业动态.py
comData/yhcj/雅虎财经_企业动态.py
+7
-4
没有找到文件。
comData/yhcj/雅虎财经_企业动态.py
浏览文件 @
734b4ae2
# 雅虎财
经企业动态获取
# 雅虎财
经企业动态获取
...
@@ -48,8 +48,8 @@ def getZx(xydm, url, title, cnx, path):
...
@@ -48,8 +48,8 @@ def getZx(xydm, url, title, cnx, path):
pub_time
=
pub_time
[
0
:
19
]
pub_time
=
pub_time
[
0
:
19
]
content
=
contentElement
.
replace
(
"'"
,
"''"
)
content
=
contentElement
.
replace
(
"'"
,
"''"
)
#
driverContent.close()
driverContent
.
close
()
driverContent
.
quit
()
#
driverContent.quit()
# 动态信息列表
# 动态信息列表
list_info
=
[
list_info
=
[
...
@@ -284,7 +284,10 @@ if __name__ == "__main__":
...
@@ -284,7 +284,10 @@ if __name__ == "__main__":
state
=
0
state
=
0
takeTime
=
baseCore
.
getTimeCost
(
start_time
,
time
.
time
())
takeTime
=
baseCore
.
getTimeCost
(
start_time
,
time
.
time
())
baseCore
.
recordLog
(
xydm
,
taskType
,
state
,
takeTime
,
news_url
,
exception
)
baseCore
.
recordLog
(
xydm
,
taskType
,
state
,
takeTime
,
news_url
,
exception
)
break
# 增量使用
# break
# 全量使用
continue
title
=
a_ele
.
text
.
lstrip
()
.
strip
()
.
replace
(
"'"
,
"''"
)
title
=
a_ele
.
text
.
lstrip
()
.
strip
()
.
replace
(
"'"
,
"''"
)
exception
=
getZx
(
xydm
,
news_url
,
title
,
cnx
,
path
)
exception
=
getZx
(
xydm
,
news_url
,
title
,
cnx
,
path
)
if
exception
==
''
:
if
exception
==
''
:
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论