Commit cbd0f705 authored by 张彦钊's avatar 张彦钊

Merge branch 'zhao' into 'master'

用户画像重排增加if判断

See merge request !34
parents 7758bbfd 63edeffc
......@@ -170,11 +170,11 @@ def to_data_base(df):
if __name__ == "__main__":
users_list = get_esmm_users()[:2000]
# TODO 删除上面的2000
users_list = get_esmm_users()
print("user number")
print(len(users_list))
if len(users_list) > 0:
name_tag = get_searchworlds_to_tagid()
n = 500
split_users_list = [users_list[i:i + n] for i in range(0, len(users_list), n)]
......@@ -197,6 +197,8 @@ if __name__ == "__main__":
3:"nearby_queue",4:"nation_queue",5:"megacity_queue",6:"time"})
to_data_base(df)
else:
print("没有获取到用户")
......
This diff is collapsed.
This diff is collapsed.
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