Skip to content

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

praw-stream-keyword-example

Note: this example uses a custom Python install at #!/usr/local/bin/python2.7. Edit this location on line 1 of the script to match your Python binary.

A simple example of how to scan Reddit's comments (in /r/all) for keywords using PRAW, send an e-mail when a comment is found, and add the results to a log file.

To use:

  1. Set up an app on Reddit here https://www.reddit.com/prefs/apps/. Hit Create App.

  2. Put the client id (red box below) in praw.ini as client_id, and client secret (blue box below) in praw.ini as client_secret.

  1. Edit the config.py file to set up an SMTP server with which to send mail, as well as who the mail should be sent to and from.

  2. Run.

About

An example on how to use Python and PRAW to search keywords in streaming Reddit comments

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages