This little Python script for a reddit bot can monitor subreddits and check them for specific keywords. Once a chosen keyword is dropped within the title of a new submission, the bot sends your actual user a PM with the URL to the post.
-
Create a reddit account for your bot
-
Login in reddit with the bot
-
Visit this with your bot
-
At the bottom of the page, click
create another app...
-
Select
Script
, and an appropriate name -
Click on
create app
-
Download or clone this repository
-
Navigate to the root of this repository
-
Execute
pip install -r requirements.txt
-
Open
__main__.py
-
Replace
your-user-agent-here
with an appropriate value like so -
Replace
your-client-id-here
with the value under personal use script that you just created -
Replace
your-secret-here
with the value besides secret (you have to click edit on the app to see it) -
Replace
bot_username
andbot_password
with the respective values of your bot account -
Replace
your-subreddit-here
with the name of the subreddit you want to monitor (without r/) -
Replace
your, keywords, here
with the actual keyword(s) you want to monitor the subreddit for -
Save
-
Run
python .
in the folder of__main__.py