您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

read_top.py 439B

12345678910111213141516
  1. from million.analyze.count_participations import count_participations
  2. from million.analyze.retain_counts import retain_counts
  3. import million.parse.fb_exports as fb
  4. DATA_PATH = './data/'
  5. export = fb.parse_dirfiles(DATA_PATH)
  6. filtered = retain_counts(export.messages)
  7. print(len(filtered))
  8. participations = count_participations(filtered, export.participants, 100)
  9. for name, count in participations.items():
  10. print(f"{name}: {count}")