This program takes data from Tweets (currently: hashtags) and forms them into wordclouds.
wordcloud_maker get_data
- retrieves data from a Mongo nosql database.
wordcloud_maker gen_wordcloud
- creates a wordcloud PNG file from a list of words and
frequencies stored in a pickle located in the working directory.
Requires a self contained Twitter database for searching through tweets. This program utilizes a Mongodb datasource which is being fed a Twitter logger.
$ pip install --editable .
wordcloud_maker --help
Chain commands together to automate.
wordcloud_maker get_data gen_wordcloud post [--quiet]
docker run -tdi --name wordcloud_maker -v D:\apps\wordcloud_maker\app\output:/usr/src/app/output --restart
unless-stopped -e DISPLAY=$DISPLAY wordcloud_maker
Complete | Priority | Task |
---|---|---|
TODO | High | Get Stopwords working. |
TODO | LOW | Filter non ascii hashtags on gen_wordcloud. |
Working | Medium | Posting capabilities for Twitter and Imgur. |
In Progress | High | Automate and Dockerize. |
This code was inspired by or hacked together with code from the following sources.
https://github.com/defacto133/twitter-wordcloud-bot https://github.com/amueller/word_cloud