Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Written for PRAW v6, Python v3.6.5 (June 2018)
- import praw
- import json
- import time
- def botLogin():
- redditInstance = praw.Reddit(username = "",
- password = "",
- client_id = "",
- client_secret = "",
- user_agent = "NUKE IT")
- return redditInstance
- r = botLogin()
- def removeYourEverything(r): #Author Specific Submission Nuker
- for submission in r.subreddit("").new():
- if str(submission.author) == "":
- commentList = submission.comments
- for comment in commentList:
- #submission.mod.remove()
- try:
- comment.delete()
- print("Deleted")
- except:
- pass
- try:
- submission.delete()
- print("deleted")
- except:
- pass
- print("done")
- exit()
- #exceptions added due to site stability issues at time of writing, leaving in doesn't cause issues/performance loss
- while True:
- try:
- removeYourEverything(r)
- except Exception as e:
- print ("Blep!")
- print("Error thrown: " + str(e))
Add Comment
Please, Sign In to add comment