Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import praw
- reddit = praw.Reddit('______')
- bot = praw.Reddit(client_id = '______', client_secret = '______', username = 'Bot', password = '______', user_agent = 'Bot 1.0') #id and secret were made with bot account
- subreddit = bot.subreddit('_______')
- submission = reddit.submission(id='6ejuod')
- submission.comment_sort = 'new'
- ### Enable one of the following two lines, comment out the other
- comments = subreddit.stream.comments() #if enabled, comments come through intended account (specially created bot account)
- comments = submission.comments.list() #if enabled, comments come through personal account
- for comment in comments:
- comment.reply("message")
- print(reddit.user.me())
- # yields personal account, not bot account
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement