Skip to content

This Python script enables you to batch subscribe to multiple subreddits on Reddit using the PRAW (Python Reddit API Wrapper) library. Simply provide a list of subreddit names in a text file, and the script will automatically subscribe you to each subreddit in the list.

License

Notifications You must be signed in to change notification settings

Ractorrr/Reddit-Batch-Subscription

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Reddit Batch Subscribe

Reddit Batch Subscribe

Dive into Reddit communities like never before! With this Python script, you can effortlessly subscribe to multiple subreddits in one go using the PRAW (Python Reddit API Wrapper) library. Whether you're exploring niche interests or broadening your horizons, this tool simplifies the process. Handle any bumps along the way gracefully with built-in exception handling. Start discovering your Reddit journey today!

Prerequisites

  • Python 3.x
  • PRAW library (pip install praw)

Getting Started

  1. Clone the repository:
git clone https://github.com/your_username/reddit-batch-subscribe.git
Make sure to add (.) in front of "env" files
cd reddit-batch-subscribe
  1. Install dependencies:
pip install -r requirements.txt
  1. Obtain Reddit API credentials:

    • Go to the Reddit website and sign in to your account.
    • Navigate to the Reddit Apps page.
    • Click on the "Create App" or "Create Another App" button.
    • Fill in the details for your application (name, description, etc.).
    • Select "script" as the app type.
    • Enter a redirect URI (e.g., http://localhost:8080).
    • Click on "Create app" to generate your client ID and client secret.
    • Note down your client ID and client secret.
  2. Create a .env file in the project directory and add your Reddit API credentials:

CLIENT_ID=your_client_id
CLIENT_SECRET=your_client_secret
USERNAME=your_reddit_username
PASSWORD=your_reddit_password
  1. Prepare a list of subreddits:

Create a text file (e.g., list.txt) with one subreddit name per line.

  1. Run the script:
python batch_subscribe.py

The script will read the list of subreddits from the list.txt file and attempt to subscribe to each subreddit. Any errors encountered during the process will be displayed in the console.

License

This project is licensed under the terms of the MIT License. See the LICENSE file for details.

About

This Python script enables you to batch subscribe to multiple subreddits on Reddit using the PRAW (Python Reddit API Wrapper) library. Simply provide a list of subreddit names in a text file, and the script will automatically subscribe you to each subreddit in the list.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages