Skip to content

AI Reddit bot that scrapes subreddits for questions, conducts research, and posts automated answers to help users with relevant information.

License

Notifications You must be signed in to change notification settings

diegovelilla/reddit-omni

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Reddit-Omni: Reddit's AI-Powered Question Vigilante

Reddit-Omni is an AI-powered bot that scrapes Reddit for questions, conducts research using online sources, and automatically generates and posts relevant answers to help users.

Index

  1. Overview
  2. Features
  3. Installation
  4. Configuration
  5. Usage
  6. Models
  7. License
  8. Contact

Overview

Reddit-Omni is an AI-powered bot designed to enhance user interaction on Reddit by automatically scraping subreddits for questions, researching those topics using external online sources (like Google), and posting detailed, relevant answers. This bot helps users get timely, researched responses, making it a useful tool for increasing engagement and providing high-quality information across various Reddit communities. It leverages web scraping, natural language processing, and automation to perform these tasks with minimal human intervention.

Features

  • No cost API usage.
  • Leverage of Meta's Llama 3.1 70B model.
  • Automatization of reddit commenting.

Workflow

There are 4 tool usages in this project:

  • reddit_scrapper: Scrapes a given subreddit for a number of posts.
  • search_tool: Searches a given query on Google.
  • scrape_tool: Scrapes a given webpage.
  • reddit_commenter: Comments given Reddit post.

Also, the AI model adquires 3 diferent personas in this project:

  • Planner: Recieves the reddit scraped question and generates queries for the search_tool.
  • Researcher: Receives the titles, summaries and URLs from the search_tool and decides which is more likely to contain useful information about the question.
  • Writer: Recieves the scrapped webpages dump and generates a concise and correct answer to the initial question.

Installation

To install the reddit-omni, follow these steps:

git clone https://github.com/diegovelilla/reddit-omni
cd reddit-omni
pip install -r requirements.txt

Configuration:

Set up your API keys in the .env file inside the config model:

GROQ_API_KEY="your_api_key_here"
SERPER_API_KEY="your_api_key_here"
CLIENT_ID="your_api_key_here"
CLIENT_SECRET="your_api_key_here"
USERNAME="your_reddit_username"
PASSWORD="your_reddit_password_here"

Usage:

To use reddit-omni just run the following command:

python3 -m app

Models

The models used for this project are:

License

This project is licensed under the Apache 2.0 License. See the LICENSE file for more details.

Contact

For any questions or feedback please reach out to:

Feel free to open an issue on GitHub or contact me in any way if you have any queries or suggestions.

About

AI Reddit bot that scrapes subreddits for questions, conducts research, and posts automated answers to help users with relevant information.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages