GithubHelp home page GithubHelp logo

snooper's Introduction

logo

Reddit Post Analyzer

Installation

⚠ API keys and Python2.7 or are newer are required.

To generate API keys, create a 'script' at: https://www.reddit.com/prefs/apps/

Next, create a file named secrets.py in the same folder as snooper.py. The file contents should appear as followed:

username  = 'your account username'
password  = 'your account password'
client_id = 'generated client id'
secret    = 'generated secret key'

Finally, install requirements using:

pip install -r requirements.txt

Usage

usage: snooper.py -n <screen_name> [options]
options:
-h --help             - show this help message and exit
-a --all              - gather dataset of both comments and posts
-p --posts            - gather dataset of user's submitted posts
-c --comments         - gather dataset of user's comments
-nc --no-color        - turns off colored output
-l --limit            - set a max amount of posts collected (default=1000)
--new                 - gather dataset from posts sorted by new (default=top posts)
-utc --utc-offset     - offset time information to allign with timezone(+- UTC)
-v --verbose          - allow verbose analysis of collected data
-vn --verbose_num     - use in conjunction with -v to limit the amount of data returned (default=5)
--get                 - collect all comments and posts from supplied subreddit
-ng --no-graph        - disable printing of graph analyzation

Examples: 
snooper.py -n mctesty
snooper.py -n mctesty -a --new -l 100
snooper.py -n mctesty -utc -5 -nc -p

Example Output

snooper's People

Contributors

nicholasdollick avatar

Stargazers

 avatar  avatar  avatar Lacrimosa avatar  avatar аэт avatar  avatar 5l1v3r1 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.