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+.
As this project is not on PyPI yet, simply clone this repository or a fork.
Optionally: Create a Python virtual environment:
python -m venv .venv
source .venv/bin/activate
Type deactivate
when you are done
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-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9349205157b65c1a0a5768a36b2b46b770abe833152202421c86db79fd9fff01 |
|
MD5 | 61aff7cb58d547ce6984d7dc294f19c6 |
|
BLAKE2b-256 | a786a4a1bc3624592a969b8f3fe6fe55e16161284964a1d2510c7271a66adcd1 |