YouTube Comment Sentiment Analyzer is a Flask-based web application that leverages Obsei, an open-source low-code AI-powered automation tool, to perform sentiment analysis on comments from a given YouTube video. The application exposes an API endpoint that receives a YouTube video URL, analyzes the sentiments of comments related to the video, and returns the positive and negative sentiment percentages.
- Sentiment Analysis: Analyze sentiments of comments for a given YouTube video.
- Flask Backend: Provides an API endpoint for receiving video URLs and returning sentiment percentages.
- Obsei: An open-source low-code AI-powered automation tool utilized for sentiment analysis.
- Pandas Sink: Stores the analyzed data in a Pandas DataFrame.
- The user sends a POST request to the
/analyze_youtube
endpoint with a JSON payload containing the YouTube video URL. - The Flask server extracts the video URL from the payload.
- An asynchronous analysis is performed using Obsei to analyze sentiments of comments related to the provided video URL.
- The positive and negative sentiment percentages are calculated based on the analysis.
- The result, including positive and negative percentages, is returned as a JSON response.
- Flask: Python web framework for building the backend server.
- Obsei: An open-source low-code AI-powered automation tool for sentiment analysis.
- Pandas: Data manipulation library for Python.
- Next.js: Frontend framework for building user interfaces.