Advertisement
Guest User

Untitled

a guest
Feb 13th, 2018
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.73 KB | None | 0 0
  1. import praw
  2. import time
  3.  
  4. def run():
  5.     print('Logging Into Reddit...')
  6.     bot = praw.Reddit(user_agent='AppNana Scheduler', client_id='KYfvyQ7A7HM2Xw',
  7.                       client_secret='rmzDD2DlkUZd6c_EpGH2OHdbOKo',
  8.                       username='Rosebstack', password='thohP4noh')
  9.     print('Logged in')
  10.  
  11.     sub_list = ['AppNana', 'AppNanas', 'Appnana_4_everybody', 'AppNanaCodeHack', 'AppnanaMoney', 'Appnanacodeexchange', 'AppnanaInviteCodes']
  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 post on Reddit
  17.             time.sleep(1020)
  18.  
  19. if __name__ == '__main__':
  20.     run()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement