This Reddit Bot comments Streamable video links for those who can't access streamable website
- Install pip3
sudo apt-get install pip3
- Install praw
pip3 install praw
- Install BeautifulSoup
pip3 install bs4
Create Reddit application
- Open your Reddit application preferences by clicking here.
- Add a new application. It doesn't matter what it's named, but calling it "clean-reddit" makes it easier to remember.
- Select "script".
- Redirect URL does not matter for script applications, so enter something like http://127.0.0.1:8080
- Once created, you should see the name of your application followed by 14 character string. Enter this 14 character
string as your
client_id
. - Copy the 27 character "secret" string into the
client_secret
field. - Add one subreddit per line in
subreddit.txt
file. - Rename
user.ini.sample
touser.ini
open it and enterclient_id
,client_secret
,username
andpassword
Username and password are simply your Reddit login credentials for the account that will be used.
Run the main.py
file
python3 main.py
Now bot will start searching for posts containing streamable links and comment accordingly.