Python3.7+ wrapper for generating word clouds from a Reddit user's comments.
Project description
Reddit Comment Cloud
Python3.7+ wrapper for generating word clouds from a Reddit user's comments.
Built upon
Use
This example will render the WordCloud of /u/SuddenlySnowden and save the image under SuddenlySnowden.png in the current working directory.
from redditcommentcloud import CommentCloud
cc = CommentCloud()
cc.renderWordCloud(username='SuddenlySnowden')
Install
The code was written for Python3.7+.
Optionally: Create a Python virtual environment:
python -m venv .venv
source .venv/bin/activate
Type deactivate
when you are done
Clone this repository or install it using pip install redditcommentcloud
.
Installing the dependencies
pip install -r requirements.txt
Supply Reddit API credentials This tool requires API credentials for the Reddit API. Go to https://www.reddit.com/prefs/apps/, create an app and copy the keys.
Copy redditcommentcloud/config.py.template
to redditcommentcloud/config.py
and fill in the details.
Freely choose a presumably unique User-Agent for the bot.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for redditcommentcloud-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e9c9f160f1ca78f75b7a1e60734e5313b20e2bf146429a2c8c5bccb266dfb0e5 |
|
MD5 | 605d483c759b48b0ed09cc0961d5da4d |
|
BLAKE2b-256 | c9da784370fa9cff4aaaee67d98a965f27d94233adf1252cb62e11da047e7cc8 |