Analyze YouTube Comments and Discover Insights
This is a submission for the MindsDB x Hashnode Hackathon. You can read a everything about the application on the submission blog.
In today's digital world, social media platforms like YouTube have become a hotspot for user-generated content. It is essential to monitor and understand the sentiments of users towards the content posted on these platforms. Our tool addresses this need by using cutting-edge technologies to perform sentiment analysis on YouTube comments.
Taking advantage of Mindsdb integration with a pre-trained Hugging-Face classifier pipeline, and also using a GradientBoostingClassifier to classify comments into feedback and questions we can plot some wonderful and interactive graphs for the content creator to understand his audience. The hugging face integration further classifies feedback into Positive and Negative ones to understand the sentiment of feedback and store them in the MongoDB database.
To run the project locally, you will need to take a couple of steps, they are as follows:
-
Fork the repository and clone it to your local machine.
git clone https://github.com/<your-username>/comment-mind.git
-
Change the directory to the project directory.
cd comment-mind
-
You will need a MindsDB accound or local installation of the same and a
seniment_classifier
model. You can do that by following the official documentation here -
Install client side dependencies.
-
Change directory to client folder.
cd client
-
Install the dependencies.
npm install
-
-
Install server side dependencies.
-
Change the directory back to root folder (use this command only if you're in client folder).
cd ..
-
Change directory to server folder.
cd server
-
Install the dependencies.
npm install
-
Environment Variables.
Now, to run the server, you will also need a
.env
file in theserver
folder. A sample file as.env.example
is provided, you just have to change the values according to your needs and rename it to.env
.Other than that, you will also need a
keys.py
file in theserver/python_db
folder. We have provided a sample file askeys.py.example
, you just have to change the values according to your needs and rename it tokeys.py
. You can get the MindsDB cloud connection string from here. -
Running the server also requires few python dependencies. Before running the server, make sure you have python installed on your system. You can install the dependencies using the following command.
pip install -r requirements.txt
-
-
Now that you have installed all the dependencies, you can run the project locally.
-
Start the server. (Run in the
server
folder)npm start
-
Start the client. (Run in the
client
folder)npm run dev
-
-
Now you can go to
http://localhost:5173
to view and run the project.
Below are the people who have created this project and maintain it. You can contact them in case of any queries.