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
- Host: GitHub
- URL: https://github.com/hadisfr/social-media-word-cloud-generator
- Owner: hadisfr
- License: mit
- Created: 2020-03-09T20:47:25.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-04-21T22:04:23.000Z (over 2 years ago)
- Last Synced: 2025-01-16T01:38:26.425Z (10 months ago)
- Topics: social-network-analysis, telegram, twitter, word-cloud
- Language: Python
- Homepage:
- Size: 141 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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_