Skip to content

luke-gto/telegram-wordcloud-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Welcome to the Telegram word cloud generator

You can use this tool to create a word cloud of your Telegram chats.

  1. Open Telegram Desktop installed on your computer, then click Settings > Export Telegram data.

  2. Select the JSON format option or the whole program simply won't work.

  3. Save the file in a directory and don't forget its name

  4. You need a stopwords list for your language in order to clean the chat from useless words. You can find here a collection of stopwords lists for multiple languages. Download the one you need.

  5. If you use Windows, you can download the installation binary. Install the program on your PC and launch it.

If you use another OS or you want to run from source code:

  1. Install the required libraries pip install -r requirements.txt

  2. Launch the script and follow the instructions python main.py

  3. Enjoy(?)

Tips

1. Masked wordcloud

The script supports masked word clouds implemented by the WordCloud Python library but their quality depends on the mask that the user chooses.

You get the best results with a black and white PNG image like this one.

The text would be placed inside the black image portion.

2. From PNG to mask

You can select the option to use a non b/w PNG and the script will try to make a good mask out of it. You can get the best result with images that have clear contours and plain colours without fancy textures.

3. Use python virtual environments

I suggest you to use a Python virtual environment ^1 ^2 to not mess around with the Python installation that's part of your OS.

Message icons created by apien - Flaticon