A small collection of automation scripts for Reddit that help you:
- 📤 Autopost images from local folders to your Reddit profile
- 🧹 Find and delete duplicate posts
- 📂 Check which local files haven’t been published yet
This repository currently contains two main scripts:
autoposter.py- automatically cycles through specified folders, posting images to your Reddit profile with random delays.duplicateDeletor.py- scans your Reddit submissions, finds duplicates, optionally deletes them, and generates a report of unpublished files on your machine.
- Looks into predefined folders (
A,H,Pby default). - Keeps track of which files are ready to be posted.
- Posts only images (
.jpg,.jpeg,.png) while skipping videos and GIFs. - Checks if a file with the same title was already posted to avoid duplicates.
- Cleans up duplicates automatically after each successful post.
- Waits a random delay (between 5 - 15 seconds by default) before posting the next file.
- Logs everything into
autoposter.log.
- Scans your profile submissions.
- Detects duplicate titles and writes them to
duplicates.txt. - Gives you the option to delete duplicates directly from your account.
- Checks your local folders and generates
unpublished.txtlisting files that were never posted.
git clone https://github.com/Antot-12/Reddit-Scripts.git
cd Reddit-Scriptspython -m venv venv
source venv/bin/activate # On Linux / macOS
venv\Scripts\activate # On WindowsBoth scripts rely on PRAW (Python Reddit API Wrapper). Install it via pip:
pip install prawBoth scripts require a Reddit app (personal use script) to authenticate.
👉 Steps:
-
Go to Reddit Apps.
-
Scroll down and click “create app”.
-
Choose script as the type.
-
Fill in:
- Name: any name you like
- Redirect URI:
http://localhost:8080(required, but unused in these scripts)
-
Once created, you’ll see:
client_id(the short alphanumeric string under the app name)client_secret
-
Open each script (
autoposter.py,duplicateDeletor.py) and replace:client_id="your_client_id" client_secret="your_client_secret" username="your_username" password="your_password" user_agent="your_user_agent"
with your own credentials.
💡 Tip: Use something like "script:MyBot:1.0 (by u/YourRedditUsername)" for user_agent.
python autoposter.py- Starts cycling through folders and posting images.
- Each successful post is logged.
- If you stop it with
CTRL + C, it will exit gracefully.
python duplicateDeletor.py- Generates
duplicates.txtwith duplicates. - Asks if you want to delete them (
y/n). - Generates
unpublished.txtshowing local files not yet posted.
The scripts expect your project to look like this:
Reddit-Scripts/
│
├── autoposter.py
├── duplicateDeletor.py
├── autoposter.log
├── duplicates.txt
├── unpublished.txt
│
├── A/
├── H/
└── P/
- Drop your images into one of the folders (
A,H,P). - The script uses the folder name + file name as the Reddit post title.
Example:
P/cat1.jpg → post titled “P cat1”
-
Both scripts use PRAW, which is Reddit’s official API wrapper for Python.
-
autoposter.py:- Uses
itertools.cycleto loop folders infinitely. - Submits images using
profile.submit_image(...). - Randomizes delays to avoid spam-like behavior.
- Uses
-
duplicateDeletor.py:- Collects all submissions from your account.
- Groups them by title.
- Writes duplicates to
duplicates.txt. - Optionally deletes duplicates.
- Scans your local folders to compare against posted titles.
- Python 3.8+
praw
That’s it! No other dependencies needed.