Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
Z
zzsn_spider
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
王景浩
zzsn_spider
Commits
58db05cc
提交
58db05cc
authored
10月 07, 2023
作者:
LiuLiYuan
浏览文件
操作
浏览文件
下载
差异文件
Merge remote-tracking branch 'origin/master'
上级
22b065ed
866688d2
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
30 行增加
和
9 行删除
+30
-9
base_info_us.py
comData/SEC_US/base_info_us.py
+16
-1
东方财富网财务数据.py
comData/caiwushuju/东方财富网财务数据.py
+13
-7
oneWeixin2.py
comData/weixin_solo/oneWeixin2.py
+1
-1
没有找到文件。
comData/SEC_US/base_info_us.py
浏览文件 @
58db05cc
...
...
@@ -85,7 +85,22 @@ if __name__=='__main__':
ein
=
jsonData
[
'ein'
]
# 联邦税号
address
=
jsonData
[
'addresses'
]
city
=
address
[
'business'
][
'city'
]
business_address
=
address
[
'business'
][
'street1'
]
+
','
+
city
+
' '
+
address
[
'business'
][
'stateOrCountryDescription'
]
try
:
if
city
:
business_address
=
address
[
'business'
][
'street1'
]
+
','
+
city
+
' '
+
address
[
'business'
][
'stateOrCountryDescription'
]
else
:
business_address
=
address
[
'business'
][
'stateOrCountryDescription'
]
except
:
try
:
business_address
=
address
[
'business'
][
'street1'
]
+
','
+
city
except
:
try
:
business_address
=
city
+
' '
+
address
[
'business'
][
'stateOrCountryDescription'
]
except
:
business_address
=
''
# city = address['business']['city']
# business_address = address['business']['street1'] + ',' + city + ' ' + address['business']['stateOrCountryDescription']
phone
=
jsonData
[
'phone'
]
# 电话
try
:
formerNames
=
jsonData
[
'formerNames'
][
0
][
'name'
]
# 曾用名
...
...
comData/caiwushuju/东方财富网财务数据.py
浏览文件 @
58db05cc
"""
"""
...
...
@@ -176,7 +176,8 @@ def get_info(social_code, com_code,info_date,delist_all,info_date_list,taskType)
dic_info_zcfzb
=
{
"name"
:
info_name
,
'enName'
:
info_name_en
,
"value"
:
info_data
"value"
:
info_data
,
"unit"
:
"元"
}
list_zcfzb
.
append
(
dic_info_zcfzb
)
...
...
@@ -202,7 +203,8 @@ def get_info(social_code, com_code,info_date,delist_all,info_date_list,taskType)
dic_info_lrb
=
{
"name"
:
info_name
,
'enName'
:
info_name_en
,
"value"
:
info_data
"value"
:
info_data
,
"unit"
:
"元"
}
list_lrb
.
append
(
dic_info_lrb
)
...
...
@@ -228,7 +230,8 @@ def get_info(social_code, com_code,info_date,delist_all,info_date_list,taskType)
dic_info_xjllb
=
{
"name"
:
info_name
,
'enName'
:
info_name_en
,
"value"
:
info_data
"value"
:
info_data
,
"unit"
:
"元"
}
list_xjllb
.
append
(
dic_info_xjllb
)
...
...
@@ -356,7 +359,8 @@ def get_info(social_code, com_code,info_date,delist_all,info_date_list,taskType)
dic_info_zcfzb
=
{
"name"
:
info_name
,
'enName'
:
info_name_en
,
"value"
:
info_data
"value"
:
info_data
,
"unit"
:
'元'
}
list_zcfzb
.
append
(
dic_info_zcfzb
)
...
...
@@ -382,7 +386,8 @@ def get_info(social_code, com_code,info_date,delist_all,info_date_list,taskType)
dic_info_lrb
=
{
"name"
:
info_name
,
'enName'
:
info_name_en
,
"value"
:
info_data
"value"
:
info_data
,
'unit'
:
'元'
}
list_lrb
.
append
(
dic_info_lrb
)
...
...
@@ -408,7 +413,8 @@ def get_info(social_code, com_code,info_date,delist_all,info_date_list,taskType)
dic_info_xjllb
=
{
"name"
:
info_name
,
'enName'
:
info_name_en
,
"value"
:
info_data
"value"
:
info_data
,
'unit'
:
'元'
}
list_xjllb
.
append
(
dic_info_xjllb
)
...
...
comData/weixin_solo/oneWeixin2.py
浏览文件 @
58db05cc
...
...
@@ -33,7 +33,7 @@ def updatewxLink(link,info_source_code,state):
def
getjsonInfo
():
#从数据库中获取信息 一条
select_sql
=
"select * from wx_link where state=
10
0 order by id asc limit 1"
select_sql
=
"select * from wx_link where state=0 order by id asc limit 1"
cursor_
.
execute
(
select_sql
)
row
=
cursor_
.
fetchone
()
cnx_
.
commit
()
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论