Advertisement
Guest User

Untitled

a guest
Feb 6th, 2018
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.70 KB | None | 0 0
  1. import praw
  2. import time
  3.  
  4. def run():
  5.     print('Logging Into Reddit...')
  6.     #Create Bot with login and private key - username - password
  7.     bot = praw.Reddit(user_agent='AppNana Post Scheduler Bot v0.1', client_id='xyNB7BJhkza4hQ', cli$
  8.         username='ReiSixx9', password='')
  9.     print('Logged in')
  10.  
  11.     sub_list = ['AppNana', 'AppNanas', 'Appnana_4_everybody', 'AppNanaCodeHack', 'AppnanaMoney', 'A$
  12.    while 1:
  13.        for sub in sub_list:
  14.            title = "d25367499"
  15.            message = ''
  16.            bot.subreddit(sub).submit(title, message)                   #Code for submitting new po$
  17.            time.sleep(600)
  18.        time.sleep(60*1)
  19.  
  20. if __name__ == '__main__':
  21.    run()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement