Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import praw
- import lorem
- reddit = praw.Reddit(client_id='',
- client_secret='',
- password='',
- user_agent='Reddit Nuker by Anon based on comment deleter by /u/camaronmars',
- username='')
- def arecomments():
- comments = list(reddit.user.me().comments.new())
- if len(comments) == 0:
- comments = list(reddit.user.me().comments.hot())
- if len(comments) == 0:
- comments = list(reddit.user.me().comments.top())
- if len(comments) == 0:
- comments = list(reddit.user.me().comments.controversial())
- return len(comments)
- def wiper(xn):
- if len(list(reddit.user.me().comments.new())) > 0:
- comments = reddit.user.me().comments.new()
- elif len(list(reddit.user.me().comments.hot())) > 0:
- comments = reddit.user.me().comments.hot()
- elif len(list(reddit.user.me().comments.top())) > 0:
- comments = reddit.user.me().comments.top()
- elif len(list(reddit.user.me().comments.controversial())) > 0:
- comments = reddit.user.me().comments.controversial()
- for comment in comments:
- edited_body = lorem.paragraph()
- print (edited_body)
- comment.edit(edited_body)
- comment.delete()
- xn = xn + 1
- print (xn)
- return xn
- KC = 0
- cont = arecomments()
- while cont != 0:
- KC = wiper(KC)
- cont = arecomments()
- print ("Completed, wiped",KC,"comments")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement