Advertisement
Guest User

Untitled

a guest
Feb 6th, 2018
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.76 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', client_secret='fNGdPVgk-WaPUqJvMEEKkauH8YY',
  8.         username='ReiSixx9', password='')
  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