Giter Site home page Giter Site logo

n8felton / prawtools Goto Github PK

View Code? Open in Web Editor NEW

This project forked from praw-dev/prawtools

0.0 2.0 0.0 130 KB

A tool to calculate various submission and comment statistics on reddit communities.

License: BSD 2-Clause "Simplified" License

Python 98.55% Shell 1.45%

prawtools's Introduction

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

Arch Linux installation

sudo pacman -S python-pip
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
    
  2. Get current flair for subreddit bar

     modutils -f bar
    
  3. 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
    
  4. 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.

subreddit_stats examples

  1. 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
    
  2. 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
    
  3. To see other possible options

     subreddit_stats --help
    

prawtools's People

Contributors

bboe avatar

Watchers

Nate Felton avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.