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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file redditcommentcloud-0.1.1.tar.gz.
File metadata
- Download URL: redditcommentcloud-0.1.1.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
458ec2fe21b3e17684f480e34c25d79667c38f9f7ae9598407128cf4860fe8d2
|
|
| MD5 |
08c281231ad3d9de243c8beb38b6187d
|
|
| BLAKE2b-256 |
a3d0a144039369204ec19aa9d91ff61075dd2c93b39136309300d971a38e9022
|
File details
Details for the file redditcommentcloud-0.1.1-py3-none-any.whl.
File metadata
- Download URL: redditcommentcloud-0.1.1-py3-none-any.whl
- Upload date:
- Size: 15.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e9c9f160f1ca78f75b7a1e60734e5313b20e2bf146429a2c8c5bccb266dfb0e5
|
|
| MD5 |
605d483c759b48b0ed09cc0961d5da4d
|
|
| BLAKE2b-256 |
c9da784370fa9cff4aaaee67d98a965f27d94233adf1252cb62e11da047e7cc8
|