Connect with like-minded individuals and get the most out of AIHawk.
π‘ Get support: Ask questions, troubleshoot issues, and find solutions.
π£οΈ Share knowledge: Share your experiences, tips, and best practices.
π€ Network: Connect with other professionals and explore new opportunities.
π Stay updated: Get the latest news and updates on AIHawk.
- Introduction
- Features
- Installation
- Configuration
- Usage
- Generating Reddit API Keys
- Conclusion
- Contributors
- License
- Disclaimer
The Reddit Post Generator is a Python script designed to automatically generate and post content on Reddit. By analyzing trending subreddits and top posts, the script creates innovative posts tailored to maximize engagement and upvotes. It uses OpenAI's GPT models and LangChain to generate content based on specific rules and summaries.
- Automatic Reddit Posting: Posts are generated and submitted to trending subreddits.
- Customizable Content Generation: Utilizes various post types such as clickbait, humorous, question-oriented, and more.
- Error Handling: Robust error management for posting failures, rate limits, and subreddit restrictions.
- Randomized Posting Intervals: Avoids detection of automated behavior by introducing random sleep intervals.
To set up and use the Reddit Post Generator, follow these steps:
-
Clone the Repository
git clone https://github.com/feder-cr/reddit_karma_farmer_auto_poster_with_AI.git cd reddit_karma_farmer_auto_poster_with_AI
-
Create a Virtual Environment (optional but recommended)
python -m venv venv source venv/bin/activate # On Windows use `venv\Scripts\activate`
-
Install Dependencies
pip install -r requirements.txt
To generate Reddit API keys, follow these steps:
-
Create a Reddit Account:
- If you donβt already have a Reddit account, sign up at reddit.com.
-
Register a New Application:
- Go to Reddit App Preferences.
- Scroll down to "Developed Applications" and click "Create App".
- Fill out the form:
- name: Choose a name for your app.
- App type: Select "script" for personal use.
- description: Optional, add a description of your app.
- about url: Leave blank.
- permissions: Leave blank.
- callback url: Set to
http://localhost:8000
(or any URL you prefer for local testing). - permissions: Select
read
andsubmit
.
- Click "Create app".
-
Obtain Your API Credentials:
- Once created, you'll be able to see your
client_id
andclient_secret
. - Use these credentials in your
config_secrets.py
file under the Reddit section.
- Once created, you'll be able to see your
-
config_secrets.py
:- This file contains your sensitive credentials and API keys. It should be placed in the same directory as your main script. Make sure to replace the placeholder values with your actual credentials.
CLIENT_ID = 'YOUR_REDDIT_CLIENT_ID' CLIENT_SECRET = 'YOUR_REDDIT_CLIENT_SECRET' USERNAME = 'YOUR_REDDIT_USERNAME' PASSWORD = 'YOUR_REDDIT_PASSWORD' OPENAI_KEY = 'YOUR_OPENAI_API_KEY'
- Explanation:
CLIENT_ID
: Your Reddit application's client ID.CLIENT_SECRET
: Your Reddit application's client secret.USERNAME
: Your Reddit username.PASSWORD
: Your Reddit account password.OPENAI_KEY
: Your OpenAI API key.
Important: Ensure this file is kept private and not shared or committed to version control to protect your sensitive information.
To use the Reddit Post Generator, execute the script main.py
. Ensure that the configuration files are correctly set up before running the script.
python main.py
The Reddit Post Generator is a powerful tool for automating Reddit content creation. By leveraging AI-driven content generation and automation, users can engage with trending topics and generate content that maximizes interaction.
- feder-cr - Creator and Lead Developer
This project is licensed under the MIT License. See the LICENSE file for details.
The use of this script for posting on Reddit is subject to Redditβs API terms of service. The script is provided "as-is" without any warranties or guarantees. For educational and demonstrative purposes only, this script is intended to showcase how Reddit automation might work and is not recommended for real-world use.
Using this script for actual Reddit posting could lead to account suspension or other penalties if it violates Reddit's guidelines or terms of service. Always use automation responsibly and ensure compliance with Reddit's rules and policies.
We strongly discourage the use of this script for real-world applications and advise against deploying it for any production or large-scale posting activities.