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
backend
crawler
Commits
b9ce66aa
Commit
b9ce66aa
authored
4 years ago
by
litaolemo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
8d933004
master
litao
mr/develop/xiaohongshu
soyang
No related merge requests found
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
crawler_week_report.py
tasks/crawler_week_report.py
+2
-1
No files found.
tasks/crawler_week_report.py
View file @
b9ce66aa
...
...
@@ -451,7 +451,7 @@ def craw_query_one_week(data_index, start_ts, end_ts, week_num, last_week_num, y
if
not
exposure_count
:
ctr
=
""
else
:
ctr
=
str
(
sorteds
/
exposure_count
*
100
)
+
"
%
"
ctr
=
str
(
round
(
sorteds
/
exposure_count
*
100
,
2
)
)
+
"
%
"
new_line
=
[
word
,
ctr
,
sorteds
,
uv
]
tag_names_list_week
.
append
(
tuple
(
new_line
+
tractate_content_num
))
for
word
in
search_keyword_dict
:
...
...
@@ -464,6 +464,7 @@ def craw_query_one_week(data_index, start_ts, end_ts, week_num, last_week_num, y
if
__name__
==
"__main__"
:
data_index
,
start_ts
,
end_ts
,
week_num
,
last_week_num
,
year
=
week_num
()
start_ts
=
1596988800000
craw_one_week
=
get_how_word_crawler_count
(
data_index
,
start_ts
,
end_ts
,
week_num
,
last_week_num
,
year
)
word_count
=
get_keyword_ctr
(
start_ts
,
end_ts
)
# 一周爬虫抓取热点数
...
...
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