Skip to main content

Reddit Comment Cloud

Python3.7+ wrapper for generating word clouds from a Reddit user's comments.

Reddit Comment Cloud for /u/SuddenlySnowden

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.

Metadata

Release files for redditcommentcloud 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for redditcommentcloud 0.1.1
File Size Uploaded
redditcommentcloud-0.1.1.tar.gz 2.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for redditcommentcloud 0.1.1
File Interpreter ABI Platform
redditcommentcloud-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 17.9 kB

Release files / redditcommentcloud-0.1.1.tar.gz

Download URL redditcommentcloud-0.1.1.tar.gz
Size 2.5 kB
Tags Source
SHA-256 checksum
How to use checksums
458ec2fe21b3e17684f480e34c25d79667c38f9f7ae9598407128cf4860fe8d2
BLAKE2b-256 checksum
How to use checksums
a3d0a144039369204ec19aa9d91ff61075dd2c93b39136309300d971a38e9022
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / redditcommentcloud-0.1.1-py3-none-any.whl

Download URL redditcommentcloud-0.1.1-py3-none-any.whl
Size 15.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e9c9f160f1ca78f75b7a1e60734e5313b20e2bf146429a2c8c5bccb266dfb0e5
BLAKE2b-256 checksum
How to use checksums
c9da784370fa9cff4aaaee67d98a965f27d94233adf1252cb62e11da047e7cc8
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page