123456789101112131415161718192021 |
- from million.view.bar_chart import plot as bar_chart
- from million.analyze.count_participations import count_participations
- from million.analyze.retain_counts import retain_counts
- import million.parse.fb_exports as fb
-
-
- DATA_PATH = './data/'
-
- export = fb.parse_dirfiles(DATA_PATH)
-
- filtered = retain_counts(export.messages)
-
- print(len(filtered))
-
- counted_participations = count_participations(filtered, export.participants)
-
- kept_participations = [
- p for p in counted_participations if p['participations'] > 100]
-
- print("\n".join(
- [f"{p['name']}: {p['participations']}" for p in kept_participations]))
|