This repository has been archived by the owner on Sep 5, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Integration: Reddit
SAMUEL ABOYE edited this page Nov 11, 2018
·
9 revisions
import praw
reddit = praw.Reddit(client_id='7IOmu3D4e37xg',
client_secret='CpoELMSztuxaoibq-Y1stThofCg',
password='Iwilltellyou',
user_agent='BloclyBot ',
username='blocklybot')
subreddit = reddit.subreddit('blockly or any subreddit')
-
In order to create, reddit integrated bot, you need to have a reddit account which will allow you to create a new app, go to www.reddit.com click the sign up button top right corner.
-
After creating an account, go to the preference or go to this URL https://www.reddit.com/prefs/apps (NB: you need to login here) click the preference on the top right corner then click create a new app left bottom
-
After creating App please fill app name, type of the application, name and description Then click the create app button
-
Now we can get our reddit API client key, client Secret
Using the Python Reddit API Wrapper (praw), we can communicate with reddit.