Skip to content
This repository has been archived by the owner on Sep 5, 2020. It is now read-only.

Integration: Reddit

SAMUEL ABOYE edited this page Nov 11, 2018 · 9 revisions

Reddit Integration

Proof of Concept

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')

Integration Notes

  1. 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. create account

  2. 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 client_id

  3. After creating App please fill app name, type of the application, name and description Then click the create app button
    app_name

  4. Now we can get our reddit API client key, client Secret client_id

Using the Python Reddit API Wrapper (praw), we can communicate with reddit.