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.

find_gromots.py 403B

1234567891011121314151617
  1. from million.analyze.wordFinder import findWords
  2. from million.parse.fb_exports import FacebookExportParser
  3. DATA_PATH = './data/'
  4. parser = FacebookExportParser()
  5. export = parser.parse(DATA_PATH)
  6. grosMots = ['merde', 'putain', 'bite', 'nichon', 'con(ne)?', 'baiser?']
  7. msgGromots = findWords(export.messages, grosMots)
  8. for gromot in msgGromots:
  9. print(f"{gromot.sender_name} : {gromot.content}")