Guest User

Untitled

a guest
Jan 6th, 2018
277
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. import praw
  2. # Delete all saved posts / comments on your reddit account with PRAW. Needs Python 2.7 + and Praw 5.3.0
  3.  
  4.  
  5.  
  6. # Replace fields in capitals with your info. CLIENT_ID and CLIENT_SECRET come from creating a developer app on reddit
  7. r = praw.Reddit(client_id=CLIENT_ID, client_secret=CLIENT_SECRET, password=PASSWORD,username=USERNAME, user_agent='/u/USERNAME delete all saved entries')
  8.  
  9. saved = r.user.me().saved(limit=1000)
  10. for s in saved:
  11. try:
  12. s.unsave()
  13. except AttributeError as err:
  14. print(err)
Add Comment
Please, Sign In to add comment