Skip to main content

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.

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+.

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

redditcommentcloud-0.1.tar.gz (2.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

redditcommentcloud-0.1-py3-none-any.whl (15.4 kB view details)

Uploaded Python 3

File details

Details for the file redditcommentcloud-0.1.tar.gz.

File metadata

  • Download URL: redditcommentcloud-0.1.tar.gz
  • Upload date:
  • Size: 2.6 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

Hashes for redditcommentcloud-0.1.tar.gz
Algorithm Hash digest
SHA256 fe388425e745c107f47841e772baf83028bec370880c833c87d1e6e468993683
MD5 bbdde523459f708c964218ca258e0b34
BLAKE2b-256 2de152227cbeb7d0fe02b5025640a34b28fd921c286a7439e37a6ce47aa91414

See more details on using hashes here.

File details

Details for the file redditcommentcloud-0.1-py3-none-any.whl.

File metadata

  • Download URL: redditcommentcloud-0.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

Hashes for redditcommentcloud-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9349205157b65c1a0a5768a36b2b46b770abe833152202421c86db79fd9fff01
MD5 61aff7cb58d547ce6984d7dc294f19c6
BLAKE2b-256 a786a4a1bc3624592a969b8f3fe6fe55e16161284964a1d2510c7271a66adcd1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page