12345678910111213141516171819202122232425 |
- 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"{k}:{p['name']}: {p['participations']}"
- for (k, p) in enumerate(kept_participations)
- ])
- )
|