Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
Z
zzsn_spider
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
1
合并请求
1
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
丁双波
zzsn_spider
Commits
71c65de8
提交
71c65de8
authored
5月 27, 2024
作者:
XveLingKun
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
es操做
上级
c4d07ea0
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
4 行增加
和
4 行删除
+4
-4
deletebyid.py
comData/YanBao/deletebyid.py
+3
-3
get_doc_id.py
comData/YanBao/get_doc_id.py
+1
-1
没有找到文件。
comData/YanBao/deletebyid.py
浏览文件 @
71c65de8
...
@@ -24,7 +24,7 @@ cursor_ = cnx_.cursor()
...
@@ -24,7 +24,7 @@ cursor_ = cnx_.cursor()
lock
=
threading
.
Lock
()
lock
=
threading
.
Lock
()
pool
=
redis
.
ConnectionPool
(
host
=
"114.11
5.236.206"
,
port
=
6379
,
password
=
'clbzzsn'
,
db
=
6
)
pool
=
redis
.
ConnectionPool
(
host
=
"114.11
6.90.53"
,
port
=
6380
,
password
=
'clbzzsn'
,
db
=
6
)
class
EsMethod
(
object
):
class
EsMethod
(
object
):
...
@@ -47,10 +47,10 @@ if __name__ == "__main__":
...
@@ -47,10 +47,10 @@ if __name__ == "__main__":
redis_conn
=
redis
.
Redis
(
connection_pool
=
pool
)
redis_conn
=
redis
.
Redis
(
connection_pool
=
pool
)
while
True
:
while
True
:
# 从redis中读取数据,去附件表中根据title查询,更新查到的附件id
# 从redis中读取数据,去附件表中根据title查询,更新查到的附件id
item
=
redis_conn
.
lpop
(
'
91330000747735638J
:id'
)
item
=
redis_conn
.
lpop
(
'
NianbaoOT
:id'
)
if
item
:
if
item
:
log
.
info
(
item
)
log
.
info
(
item
)
id
=
int
(
item
.
decode
()
.
split
(
'|'
)[
0
]
)
id
=
int
(
item
.
decode
())
try
:
try
:
esMethod
.
delete
(
esMethod
.
index_name
,
id
)
esMethod
.
delete
(
esMethod
.
index_name
,
id
)
except
Exception
as
e
:
except
Exception
as
e
:
...
...
comData/YanBao/get_doc_id.py
浏览文件 @
71c65de8
...
@@ -26,7 +26,7 @@ lock = threading.Lock()
...
@@ -26,7 +26,7 @@ lock = threading.Lock()
pathType
=
'QYNotice/'
pathType
=
'QYNotice/'
taskType
=
'企业研报/东方财富网'
taskType
=
'企业研报/东方财富网'
pool
=
redis
.
ConnectionPool
(
host
=
"114.11
5.236.206"
,
port
=
6379
,
password
=
'clbzzsn'
,
db
=
6
)
pool
=
redis
.
ConnectionPool
(
host
=
"114.11
6.90.53"
,
port
=
6380
,
password
=
'clbzzsn'
,
db
=
6
)
class
EsMethod
(
object
):
class
EsMethod
(
object
):
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论