This Python script allows you to automate the process of subscribing to multiple subreddits on Reddit at once with one click using the PRAW Library.
Before using this script, you need to have the following:
-
Python 3 installed on your machine.
-
PRAW (Python Reddit API Wrapper) library installed. You can install it using
pip
with the following command:pip install praw
-
Reddit API credentials (client ID and client secret) for authentication purposes. You can obtain these credentials by creating a Reddit script app. Follow these steps to get your credentials:
- Go to the Reddit preferences apps page.
- Scroll down to the "Developed applications" section and click on the "Create App" or "Create Another App" button.
- Fill in the required information for your app (name, description, etc.). Select the "script" option as the app type.
- Set the "About URL" and "Redirect URI" fields to any valid URL, as they are not necessary for script-type apps.
- Click on the "Create app" button.
- On the next page, you will find your client ID and client secret. Take note of these values as they will be needed later.
-
Clone this repository to your local machine:
git clone https://github.com/your-username/reddit-subreddit-joiner.git
-
Navigate to the project directory:
cd reddit-subreddit-joiner
-
Open the script file
reddit_joiner.py
in a text editor. -
Replace the placeholders with your Reddit API credentials:
client_id = "your_client_id" client_secret = "your_client_secret" username = "your_username" password = "your_password"
-
Open the 'input.txt' file and paste all the subreddits even it is a whole website containing names of r/ subreddits, it will automatically extract subreddits from that list.
-
Execute the script by running the following command:
python reddit_joiner.py
The script will automatically generate a list of subreddits starting with "r/" from a set of random words and join them using your Reddit API credentials. You will see the output indicating successful join or any errors that occurred during the process.
That's it! You can now easily automate joining multiple subreddits on Reddit using this script.
NOTE : If it found any non-existing subreddit it will ignore those subreddit names and continue to the next subreddits
This project is licensed under the MIT License.