Package: redditanalysis
[![PyPI version](https://badge.fury.io/py/redditanalysis.svg)](https://badge.fury.io/py/redditanalysis)
![Python 2.7](https://img.shields.io/badge/python-2.7-blue.svg)
![Python 3.5](https://img.shields.io/badge/python-3.5-blue.svg)
![License](https://img.shields.io/badge/license-GPLv3-blue.svg)# Reddit Analysis projectPlease send all requests to make a Most-Used Words (MUW) cloud tohttp://www.reddit.com/r/MUWs/Feel free to post the MUWs you’ve made there, too.## LicenseCopyright 2016 Randal S. Olson.This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.You should have received a copy of the GNU General Public License along with
this program. If not, seehttp://www.gnu.org/licenses/.## DependenciesYou must first install the Python library if you do not have that already.
Preferably, use the [Anaconda Python distribution](http://continuum.io/downloads) for an easy install.Next, you can install this package. Enter the following command into the
terminal:pip install redditanalysisYou may need to putsudoin front of the above command if your system
requires root access.If you want to install the lastest development version from github first
clone the package:git clonehttps://github.com/rhiever/reddit-analysis.gitchange into thereddit-analysisdirectory:cd reddit-analysisthen run the update script:python setup.py install## Files in this repositoryredditanalysis/words/common-words.txtis a data file containing a list of words
that should be considered common. Note that this list is not final and is
constantly changing.redditanalysis/words/dict-words.txtis a data file containing a list of words
from a dictionary. It is only recommended to use this file (with the-xoption)
if you wantword_freqsto pick out very uncommon words.## UsageOnce installed, run the following on your command line to produce a usage
message:word_freqs –helpThis command will detail all of the command line options and arguments for theword_freqs.### Make a MUW cloud for a subreddit or redditorTo count the most-used words for a subreddit over the last month, enter the
following command:word_freqs YOUR-USERNAME /r/SUBREDDITSimilarly, for a reddit user:word_freqs YOUR-USERNAME /u/REDDITORwhereYOUR-USERNAMEis your reddit username andSUBREDDIT/REDDITORis
the subreddit / redditor you want to make the MUW cloud for. You
must providebotharguments for the script to work properly.Why is your username required?Simply because it will be used as the user-agent when making the Reddit API request. Reddit asks its API users to use something unique as the user-agent and recomends to use the users username.Once the script completes, it will create a file calledsubreddit-SUBREDDIT.csv(oruser-REDDITOR.csv) to the directory you ran it in. This file contains all of
the commonly-used words from the subreddit / redditor you specified in the
frequencies they were used.To make a MUW cloud out of the words, copy all of the words intohttp://www.wordle.net/composeand click the Go button. Ta-da, you’re done!### Multiprocessreddit-analysissupports multiprocess PRAW. This allows you to run multiple instances
ofreddit-analysissimultaneously and not risk getting banned for overusing the reddit API.
To enable multiprocess PRAW inreddit-analysis, add the-uflag.See the [PRAW documentation](https://praw.readthedocs.org/en/latest/pages/multiprocess.html) for more information.