Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
Z
zzsn_spider
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
1
合并请求
1
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
丁双波
zzsn_spider
Commits
d27ed8e5
提交
d27ed8e5
authored
9月 18, 2023
作者:
薛凌堃
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
东方财富网财务数据维护
上级
838272fc
显示空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
7 行增加
和
6 行删除
+7
-6
东方财富网财务数据.py
comData/caiwushuju/东方财富网财务数据.py
+7
-6
没有找到文件。
comData/caiwushuju/东方财富网财务数据.py
浏览文件 @
d27ed8e5
"""
"""
...
@@ -465,14 +465,15 @@ def job(taskType):
...
@@ -465,14 +465,15 @@ def job(taskType):
social_code
=
baseCore
.
redicPullData
(
'FinanceFromEast:finance_socialCode'
)
social_code
=
baseCore
.
redicPullData
(
'FinanceFromEast:finance_socialCode'
)
# social_code = '91420300178856869P'
# social_code = '91420300178856869P'
# 判断 如果Redis中已经没有数据,则等待
# 判断 如果Redis中已经没有数据,则等待
log
.
info
(
f
'==========正在采集{social_code}============'
)
if
social_code
==
None
or
social_code
==
'None'
:
if
social_code
==
None
:
log
.
info
(
'======已没有数据==========等待====='
)
time
.
sleep
(
20
)
time
.
sleep
(
20
)
if
flag
==
0
:
if
flag
==
0
:
pass
continue
elif
flag
==
1
:
elif
flag
==
1
:
time
.
sleep
(
5400
)
time
.
sleep
(
5400
)
url_
=
'http://114.115.236.206:8088/sync/finance/calculateIndex?type=1'
log
.
info
(
'=============调用对比指标接口======'
)
url_
=
'http://114.115.236.206:8088/sync/calculateIndex?type=1'
for
nnn
in
range
(
0
,
3
):
for
nnn
in
range
(
0
,
3
):
try
:
try
:
res_
=
requests
.
get
(
url_
)
res_
=
requests
.
get
(
url_
)
...
@@ -481,7 +482,7 @@ def job(taskType):
...
@@ -481,7 +482,7 @@ def job(taskType):
time
.
sleep
(
1
)
time
.
sleep
(
1
)
print
(
res_
.
text
)
print
(
res_
.
text
)
continue
continue
log
.
info
(
f
'==========正在采集{social_code}============'
)
sql_sel
=
f
'''select securities_code,exchange from sys_base_enterprise_ipo where category = '1' and social_credit_code='{social_code}' '''
sql_sel
=
f
'''select securities_code,exchange from sys_base_enterprise_ipo where category = '1' and social_credit_code='{social_code}' '''
cursor
.
execute
(
sql_sel
)
cursor
.
execute
(
sql_sel
)
row
=
cursor
.
fetchone
()
row
=
cursor
.
fetchone
()
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论