A Python script to automatically post a gallery of images to multiple subreddits, complete with flair selection and a custom comment.
- Posts a gallery of images to multiple subreddits
- Automatically selects and previews flair
- Adds a predefined comment from a
.txt
file - Supports emojis in post title
- Interactive preview and confirmation before posting
git clone https://github.com/exilonium/MultiredditPoster.git
cd MultiredditPoster
It’s recommended to use a virtual environment:
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
pip install -r requirements.txt
Dependencies:
praw
If you don’t have a requirements.txt
, just install manually:
pip install praw
-
Scroll down and click "Create App"
-
Choose "script" as the app type
-
Fill in:
- Name: (anything)
- Redirect URI:
http://localhost:8080
(placeholder)
-
Save and copy:
client_id
(just under the app name)client_secret
look at example.config.json
{
"client_id": "your_client_id_here",
"client_secret": "your_client_secret_here",
"username": "your_reddit_username",
"password": "your_reddit_password",
"user_agent": "reddit-multi-poster-script by /u/your_username"
}
Create these plain .txt
files in the project folder:
title.txt
– Your post title (can include emojis)comment.txt
– The comment to be posted after the submissionsubreddits.txt
– A list of subreddits, one per lineimages/
folder – Place your.jpg
,.png
,.gif
files here
Example subreddits.txt
:
askreddit
unixporn
anarchychess
python main.py
You will be prompted to:
- Choose a flair (if available)
- Confirm the post preview before submission
- Make sure the user account you're posting with has permission to post in the selected subreddits.
- Avoid spammy behavior — Reddit can ban accounts for excessive or irrelevant posting.
I've created this repo cause i wanted to market some cloths images (Reddit gallery)
I couldn't find this feature in any of the existing apps (like infinity ,etc)
So i scripted this script specifically for my personal use. (I don't think anyone else is gonna use this script)
Put the images in img/ directory with names like (1.png, 2.png, etc)
If anyone wants any other feature please create a feature request or pr. (how did you got this repo lol?)
MIT