Skip to main content

A collection of utilities that utilize the reddit API.

Project description

# BBOE’s PRAWtools

PRAWtools is a collection of tools that utilize reddit’s API through the Python Reddit API Wrapper (PRAW). PRAWtools is currently made up of two utillities:

  • modutils
  • subreddit_stats

## PRAWtools Installation

### Ubuntu/debian installation

sudo apt-get install python-setuptools sudo easy_install pip sudo pip install prawtools

### Mac OS X installation (only tested with Lion)

sudo easy_install pip sudo pip install prawtools

## modutils

modutils is a tool to assist Reddit community moderators in moderating their community. At present, it is mostly useful for automatically building flair templates from existing user flair, however, it can also be used to quickly list banned users, contributors, and moderators.

### modutils examples

Note: all examples require you to be a moderator for the subreddit

  1. List banned users for subreddit __foo__

    modutils -l banned foo

  1. Get current flair for subreddit __bar__

    modutils -f bar

0. Synchronize flair templates with existing flair for subreddit __baz__, building non-editable templates for any flair whose flair-text is common among at least 2 users.

modutils –sync –ignore-css –limit=2 baz

0. Send a message to approved submitters of subreddit __blah__. You will be prompted for the message, and asked to verify prior to sending the messages.

modutils –message contributors –subject “The message subject” blah

## subreddit_stats

subreddit_stats is a tool to provide basic statistics on a subreddit. To see the what sort of output subreddit stats generates check out [/r/subreddit_stats](http://www.reddit.com/r/subreddit_stats).

### subreddit_stats examples

0. Generate stats for subreddit __foo__ for the last 30 days with extra verbose output. Post results to subreddit __bar__ as user __user__.

subreddit_stats -d30 -vv -R bar -u user foo

0. Generate stats for subreddit __blah__ for the top posts of the year. Post the results to the same subreddit as user __resu__.

subreddit_stats –top year -u resu blah
  1. To see other possible options

    subreddit_stats –help

Project details


Release history Release notifications

History Node

0.23.0

History Node

0.22.1

History Node

0.22.0

History Node

0.21.3

History Node

0.21.2

History Node

0.21.1

History Node

0.21.0

History Node

0.20.1

History Node

0.20.0

History Node

0.19.3

History Node

0.19.2

History Node

0.19.1

History Node

0.19

History Node

0.18

History Node

0.17

History Node

0.16

History Node

0.15

History Node

0.14

History Node

0.13

History Node

0.12

History Node

0.11

History Node

0.10

History Node

0.9

History Node

0.7

History Node

0.6

History Node

0.5

History Node

0.4

This version
History Node

0.3

History Node

0.2

History Node

0.1

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
prawtools-0.3.tar.gz (11.3 kB) Copy SHA256 hash SHA256 Source None Aug 19, 2012

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page