Skip to content

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

License

Notifications You must be signed in to change notification settings

hadisfr/social-media-word-cloud-generator

Repository files navigation

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
  • 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 and twint
  • export a chat to a place such as tweets.json with twint -u <username> -o tweets.json --json --filter-retweets or twint -u <username> -o tweets.json --json -cq "from:<username> \-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 [+].

  • run script as: python3 -m twtr tweets.json res.png to generate res.png

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages