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

12345678910111213141516
  1. from million.analyze.count_participations import count_participations
  2. from million.analyze.word_finder 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}")