This is a script used for reddit to allow moderators of a subreddit to easily clear their unmoderated posts queue in an easy manner.
- The script will crash after it has checked 100 posts. It can then be run again to clear another 100.
- Python
-
Follow Reddit's First Steps Guide to obtain a Client ID & Client Secret.
-
Create a .env file in the root directory and paste the following inside it:
CLIENT_ID=your-client-id CLIENT_SECRET=your-client-secret USERNAME=your-reddit-username PASSWORD=your-reddit-password USER_AGENT=subcounts by u/your-reddit-username SUBREDDIT_NAME=your-subreddit
-
Replace each field in the .env with your credentials.
-
Create and activate a virtual environment:
python3 -m venv .venv source .venv/bin/activate
-
Install dependencies:
pip install -r requirements.txt
-
Run the script:
python3 main.py