You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

read_top.py 437B

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}")