An open API service indexing awesome lists of open source software.

https://github.com/hadisfr/social-media-word-cloud-generator

a series of scripts to generate word cloud from social media posts
https://github.com/hadisfr/social-media-word-cloud-generator

social-network-analysis telegram twitter word-cloud

Last synced: 24 days ago
JSON representation

a series of scripts to generate word cloud from social media posts

Awesome Lists containing this project

README

          

# [Social Media Word Cloud Generator](https://github.com/hadisfr/social-media-word-cloud-generator)

a series of scripts to generate word cloud from social media posts

---

## Usage

* you may need to use `git submodule update --init --recursive` to download submodules

### Telegram

* (optional) create a python3 virtual environment
* install requirements mentioned in [_requirements.txt_](requirements.txt)
* export a chat to a place such as _extracted-chats-folder_
* run script as: `python3 -m tlgr extracted-chats-folder res.png` to generate _res.png_

### Twitter

* (optional) create a python3 virtual environment
* install requirements mentioned in [_requirements.txt_](requirements.txt) and [twint](https://github.com/twintproject/twint)
* export a chat to a place such as _tweets.json_ with ```twint -u -o tweets.json --json --filter-retweets``` or ```twint -u -o tweets.json --json -cq "from: \-filter:replies"```
* you may also use ```--timeline``` flag.
> Twitter can shadow-ban accounts, which means that their tweets will not be available via search. To solve this, pass --profile-full if you are using Twint via CLI or, if are using Twint as module, add config.Profile_full = True. Please note that this process will be quite slow [[+](https://github.com/twintproject/twint#faq)].
* run script as: `python3 -m twtr tweets.json res.png` to generate _res.png_