Guest User

Untitled

a guest
Jun 12th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. #Written for PRAW v6, Python v3.6.5 (June 2018)
  2. import praw
  3. import json
  4. import time
  5.  
  6.  
  7.  
  8. def botLogin():
  9. redditInstance = praw.Reddit(username = "",
  10. password = "",
  11. client_id = "",
  12. client_secret = "",
  13. user_agent = "NUKE IT")
  14. return redditInstance
  15. r = botLogin()
  16.  
  17.  
  18.  
  19. def removeYourEverything(r): #Author Specific Submission Nuker
  20. for submission in r.subreddit("").new():
  21. if str(submission.author) == "":
  22. commentList = submission.comments
  23. for comment in commentList:
  24. #submission.mod.remove()
  25. try:
  26. comment.delete()
  27. print("Deleted")
  28. except:
  29. pass
  30. try:
  31. submission.delete()
  32. print("deleted")
  33. except:
  34. pass
  35. print("done")
  36. exit()
  37.  
  38. #exceptions added due to site stability issues at time of writing, leaving in doesn't cause issues/performance loss
  39.  
  40.  
  41. while True:
  42. try:
  43. removeYourEverything(r)
  44. except Exception as e:
  45. print ("Blep!")
  46. print("Error thrown: " + str(e))
Add Comment
Please, Sign In to add comment