behavior based de

logo

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:

1
2
3
4
username  = 'your account username'
password = 'your account password'
client_id = 'generated client id'
secret = 'generated secret key'

Finally, install requirements using:

1
pip install -r requirements.txt

Usage

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
usage: snooper.py -n <screen_name> [options]
options:
-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)

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

Example Output