Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
crawler
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chengyang Zhong
crawler
Commits
71d3f7a7
Commit
71d3f7a7
authored
4 years ago
by
litaolemo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
5765ae54
master
xiangwan
No related merge requests found
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
push_crawler_data_to_mysql.py
crawler_sys/scheduler/push_crawler_data_to_mysql.py
+2
-0
No files found.
crawler_sys/scheduler/push_crawler_data_to_mysql.py
View file @
71d3f7a7
...
...
@@ -70,6 +70,8 @@ def scan_es_to_mysql():
if
tractate_id
:
rds
.
sadd
(
"article_id_list"
,
res
[
"_id"
])
search_word
=
data
[
"search_word"
]
if
not
query_id_dict
.
get
(
search_word
):
query_id_dict
[
search_word
]
=
{}
query_id_dict
[
search_word
][
tractate_id
]
=
1
count
+=
1
if
count
%
1000
==
0
:
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment