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 423B

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. gros_mots = ['merde', 'sexe', 'pute', 'putain', 'bite', 'nichon', 'con(ne)?', 'baiser?']
  7. msg_gromots = findWords(export.messages, gros_mots)
  8. for gromot in msg_gromots:
  9. print(f"{gromot.sender_name} : {gromot.content}")