Commit b9ce66aa authored by litaolemo's avatar litaolemo

update

parent 8d933004
...@@ -451,7 +451,7 @@ def craw_query_one_week(data_index, start_ts, end_ts, week_num, last_week_num, y ...@@ -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: if not exposure_count:
ctr = "" ctr = ""
else: else:
ctr = str(sorteds/exposure_count * 100) + "%" ctr = str(round(sorteds/exposure_count * 100, 2)) + "%"
new_line = [word,ctr, sorteds, uv] new_line = [word,ctr, sorteds, uv]
tag_names_list_week.append(tuple(new_line + tractate_content_num)) tag_names_list_week.append(tuple(new_line + tractate_content_num))
for word in search_keyword_dict: 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 ...@@ -464,6 +464,7 @@ def craw_query_one_week(data_index, start_ts, end_ts, week_num, last_week_num, y
if __name__ == "__main__": if __name__ == "__main__":
data_index, start_ts, end_ts, week_num, last_week_num, year = week_num() 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) 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) word_count = get_keyword_ctr(start_ts, end_ts)
# 一周爬虫抓取热点数 # 一周爬虫抓取热点数
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment