Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

redditcommentcloud

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

redditcommentcloud

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

  • 0.1.1
  • PyPI
  • Socket score

Maintainers
1

Reddit Comment Cloud

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

Reddit Comment Cloud for /u/SuddenlySnowden

Built upon

  • PRAW (Python Reddit API Wrapper)
  • WordCloud
  • matplotlib

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.

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc