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
82eff02c
Commit
82eff02c
authored
4 years ago
by
litaolemo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
01b7641a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
7 deletions
+10
-7
crawler_week_report.py
tasks/crawler_week_report.py
+10
-7
No files found.
tasks/crawler_week_report.py
View file @
82eff02c
...
...
@@ -144,13 +144,16 @@ def get_es_word(word,start_ts):
craw_level_count
=
results
[
"aggregations"
][
"content_level"
][
"buckets"
]
res_list
=
[]
# 可见3456星帖子
for
content_level
in
(
"3"
,
"4"
,
"5"
,
"6"
):
doc_count
=
0
for
content_level_dic
in
content_level_count
:
if
content_level_dic
[
"keys"
]
==
content_level
:
doc_count
=
content_level_dic
[
"doc_count"
]
break
res_list
.
append
(
doc_count
)
try
:
for
content_level
in
(
"3"
,
"4"
,
"5"
,
"6"
):
doc_count
=
0
for
content_level_dic
in
content_level_count
:
if
content_level_dic
[
"keys"
]
==
content_level
:
doc_count
=
content_level_dic
[
"doc_count"
]
break
res_list
.
append
(
doc_count
)
except
:
print
(
"craw_level_count error"
,
craw_level_count
)
res_list
.
append
(
craw_tractate_num
)
for
content_level
in
(
"3"
,
"4"
,
"5"
,
"6"
):
doc_count
=
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