[](https://badge.fury.io/py/redditanalysis)   
# Reddit Analysis project
Please send all requests to make a Most-Used Words (MUW) cloud to http://www.reddit.com/r/MUWs/
Feel free to post the MUWs you’ve made there, too.
## License
Copyright 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, see http://www.gnu.org/licenses/.
## Dependencies
You 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 redditanalysis
You may need to put sudo in 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:
change into the reddit-analysis directory:
cd reddit-analysis
then run the update script:
python setup.py install
## Files in this repository
redditanalysis/words/common-words.txt is 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.txt is a data file containing a list of words from a dictionary. It is only recommended to use this file (with the -x option) if you want word_freqs to pick out very uncommon words.
## Usage
Once installed, run the following on your command line to produce a usage message:
word_freqs –help
This command will detail all of the command line options and arguments for the word_freqs.
### Make a MUW cloud for a subreddit or redditor
To count the most-used words for a subreddit over the last month, enter the following command:
word_freqs YOUR-USERNAME /r/SUBREDDIT
Similarly, for a reddit user:
word_freqs YOUR-USERNAME /u/REDDITOR
where YOUR-USERNAME is your reddit username and SUBREDDIT / REDDITOR is the subreddit / redditor you want to make the MUW cloud for. You must provide both arguments 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 called subreddit-SUBREDDIT.csv (or user-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 into http://www.wordle.net/compose and click the Go button. Ta-da, you’re done!
### Multiprocess
reddit-analysis supports multiprocess PRAW. This allows you to run multiple instances of reddit-analysis simultaneously and not risk getting banned for overusing the reddit API. To enable multiprocess PRAW in reddit-analysis, add the -u flag.
See the [PRAW documentation](https://praw.readthedocs.org/en/latest/pages/multiprocess.html) for more information.
Metadata
Release files for redditanalysis 1.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| redditanalysis-1.0.5.tar.gz | 766.1 kB | Without provenance | Details |
Release files / redditanalysis-1.0.5.tar.gz
| Download URL | redditanalysis-1.0.5.tar.gz |
|---|---|
| Size | 766.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d23a68b86c971ee58c2f6a6d2ecf92ffab48e1f2d3f39bec52a84be4a3c4d564
|
|
BLAKE2b-256 checksum How to use checksums |
5b342e162bd6961e6dbd75e00b605fcd291ed45392c670e368a7038aa77bfe79
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for redditanalysis 1.0.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.