Skip to content

Instantly share code, notes, and snippets.

@Abrownn
Last active July 28, 2018 23:12
Show Gist options
  • Save Abrownn/d4615efcbf37ce474bf2895887ebffcb to your computer and use it in GitHub Desktop.
Save Abrownn/d4615efcbf37ce474bf2895887ebffcb to your computer and use it in GitHub Desktop.
Nukes a sub, may need to be ran several times
import praw
def SubNuke():
r = praw.Reddit(username = "",
password = "",
client_id = "",
client_secret = "",
user_agent = "NUKE SPAM ITS BAD OH GOD PLZ DIE")
for submission in r.subreddit("").new(limit=1000):
submission.mod.remove()
print("deleted")
print("done")
exit()
while True:
try:
SubNuke(r)
except Exception as e:
print ("Blep!")
print("Error: " + str(e))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment