Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # http://praw.readthedocs.io/en/latest/getting_started/authentication.html
- reddit = praw.Reddit(client_id='your app client id',
- client_secret='your app client secret',
- username='your bot reddit username',
- password='your bot reddit password',
- user_agent='python3:KeyWordNotify:v1 (/u/Arkaon)')
- you = reddit.redditor('your reddit username') # this is the account that will receive the messages
- subreddit = reddit.subreddit('your subreddit name') # scan comments in this subreddit
- keywords = ['keyword1', 'keyword2', 'keyword3'] # case insensitive
- ignore_users = ['baduser1', 'baduser2', 'baduser3'] # case SENSITIVE
- already_alerted_submissions = [] # a list of submission ids that you have already been notified for
- comment_stream = subreddit.stream.comments()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement