Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

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