Skip to content

Ikarus0013/RedditSentimentChecker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Reddit Stock Sentiment Analyzer

A full-stack application that analyzes stock sentiment by combining Reddit discussions, news data, and technical analysis. The application helps investors make more informed decisions by providing a comprehensive view of market sentiment.

Features

  • Reddit Sentiment Analysis: Scrapes and analyzes Reddit posts and comments about specific stocks
  • News Integration: Fetches relevant news articles about the stock
  • Technical Analysis: Analyzes stock charts using AI
  • Real-time Updates: Provides streaming updates of analysis results
  • Sentiment Scoring: Combines multiple data sources to generate an overall sentiment score

Tech Stack

  • Frontend: React.js
  • Backend: Node.js with Express
  • AI/ML: OpenAI GPT-4 Vision API
  • Data Sources: Reddit API, News API
  • Web Scraping: Selenium WebDriver

Prerequisites

  • Node.js (v14 or higher)
  • Chrome/Chromium browser (for Selenium)
  • OpenAI API key
  • News API key

Installation

  1. Clone the repository:
git clone https://github.com/Ikarus0013/RedditSentimentChecker.git
cd RedditSentimentChecker
  1. Install backend dependencies:
cd stock-chart-analyzer-backend
npm install
  1. Install frontend dependencies:
cd ../stock-chart-analyzer
npm install
  1. Create a .env file in the backend directory with the following variables:
OPENAI_API_KEY=your_openai_api_key
NEWS_API_KEY=your_news_api_key
PORT=3005

Running the Application

  1. Start the backend server:
cd stock-chart-analyzer-backend
npm start
  1. Start the frontend development server:
cd stock-chart-analyzer
npm start

The application will be available at http://localhost:3000

Project Structure

RedditSentimentChecker/
├── stock-chart-analyzer/          # Frontend React application
│   ├── src/                      # Source files
│   ├── public/                   # Static files
│   └── package.json             # Frontend dependencies
│
└── stock-chart-analyzer-backend/  # Backend Node.js application
    ├── redditScraper.js         # Reddit data scraping logic
    ├── newsScraper.js           # News data fetching
    ├── openai-assistant.js      # AI analysis integration
    ├── server.js                # Express server
    └── package.json            # Backend dependencies

Contributing

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments

  • OpenAI for providing the GPT-4 Vision API
  • Reddit API for access to discussion data
  • News API for financial news data

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors