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.
- 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
- 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
- Node.js (v14 or higher)
- Chrome/Chromium browser (for Selenium)
- OpenAI API key
- News API key
- Clone the repository:
git clone https://github.com/Ikarus0013/RedditSentimentChecker.git
cd RedditSentimentChecker- Install backend dependencies:
cd stock-chart-analyzer-backend
npm install- Install frontend dependencies:
cd ../stock-chart-analyzer
npm install- Create a
.envfile in the backend directory with the following variables:
OPENAI_API_KEY=your_openai_api_key
NEWS_API_KEY=your_news_api_key
PORT=3005
- Start the backend server:
cd stock-chart-analyzer-backend
npm start- Start the frontend development server:
cd stock-chart-analyzer
npm startThe application will be available at http://localhost:3000
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
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- OpenAI for providing the GPT-4 Vision API
- Reddit API for access to discussion data
- News API for financial news data