Skip to content

Profiles a reddit user's comments to find certain words

License

Notifications You must be signed in to change notification settings

hoenn/SailorMouth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SailorMouth

Profiles a reddit user's word choice against a target word list.

alt text

Don't be this guy

Dependencies

PRAW, ascii_graph

Dependencies can easily be installed with pip by:

$ pip install praw
$ pip install ascii_graph

Running the program

This program is launched from the command line and outputs to the command line

Using argparse run the program with a series of commands

$ python sailor_mouth.py --help
usage: sailor_mouth.py [-h] -u USER [-l LIMIT] [-d DICT] [-s SORT] [-v] [-c]

The only required argument is -u which must be immediately followed by a user

Example: $ python sailor_mouth.py -u i_am_hoenn

Optional arguments include

-l, --limit Number of comments to profile. Default value of 100. Upper limit of 999 imposed by Reddit API

-d, --dict File path to target word definitions. Defaults to 'bad_words.txt'. Ensure that file is in 'lists' directory and include '.txt' in argument

-s, --sort Sort graph data. Include 'inc' or 'dec' as an argument

-v, --verbose Includes extra information: what words occured in what subreddits and how many times they occured. Potentially NSFW if using a target word list that is NSFW

-c, --color Enables a colored graph based, must have ANSI color enabled

Running using all settings

$ python sailor_mouth.py -u i_am_hoenn -l 1000 -d sat_300.txt -s dec -c -v

Windows Command Prompt color not working

ANSI Escape codes may not be supported in your version of windows.

See ansicon to work around the issue

License

MIT

Note

Due to artificial limitations imposed by the Reddit API, the runtime of the program is slowed

About

Profiles a reddit user's comments to find certain words

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages