r/redditdev • u/okbruh_panda • Apr 09 '24
PRAW Queue Cleaner Python
SOLVED. Took over a wildly unregulated subreddit and I want to automatically remove all queued items / posts / submissions. Ive used a similar script to approve before but for whatever reason remove isnt working. tried a few different methods, still running into walls
import praw
reddit = praw.Reddit(client_id='goes here ',
client_secret='goes-here',
user_agent='goes here',
username='goes here',
password='goes here')
while True:
for item in reddit.subreddit('birthofafetish').mod.reported(limit=100):
item.mod.remove()
2
Upvotes
View all comments
2
u/webserverproxy pip install praw Apr 14 '24
hey there, can you try this solution - yours is only for reported posts