Transform facebook messages to wordclouds (Python)

Words
100
Reading
1 min
Listen
Play
7y

I made a python program that generates a wordcloud out of your facebook messages (examples below). Go to https://github.com/torsteoe/messenger-wordclouds for easy instructions on how to run the program. Please don't hesitate to contact me if you have any questions or comments regarding the script.

Short summary

  1. Download facebook message data from facebook.com
  2. Install requirements and run script

Examples of generated "random" wordclouds

Most frequent words

content.png

Messages per person

senders.png

Imported libraries: wordcloud, pillow, numpy, stop_words, multidict, json, random, os

I also recommend looking at the script that inspired me: https://github.com/mrgarrett45/songclouds, MrGarrett45 has written a script that generates wordclouds from lyrics.

Transform facebook messages to wordclouds (Python) | Ecency