Skip to content

Man-asvi/Youtube-Comments-Analysis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 
Β 
Β 

Repository files navigation

YouTube Comments Sentiment Analysis

Analyze sentiment in YouTube video comments using R

Language NLP


πŸ“Œ Overview

This project performs sentiment analysis on comments retrieved from a YouTube video using R programming and YouTube Data API v3. It fetches comments based on a video ID, cleans and processes the text, and classifies them as positive or negative using lexicon-based sentiment scoring.

Ideal for:

  • πŸŽ₯ YouTubers or marketers analyzing viewer response
  • πŸ“ˆ Researchers studying social sentiment trends
  • 🧠 Students exploring real-world NLP using R

✨ Features

  • πŸ”‘ Fetch comments using YouTube Data API
  • 🧹 Text preprocessing (tokenization, stopwords removal, etc.)
  • πŸ“Š Lexicon-based sentiment classification
  • πŸ“ˆ Sentiment summary with visualizations (bar plot, pie chart, word cloud)
  • πŸ“ Option to export results to CSV

πŸ› οΈ Tech Stack

Component Technology
Language R
Text Mining tidytext, tm
API Integration youtube comments API
Visualization ggplot2, wordcloud
Data Wrangling dplyr, tidyr

πŸš€ Getting Started

Get Your API Key

  • Go to Google Cloud Console
  • Enable YouTube Data API v3
  • Generate an API Key
  • Update the following line with your API key and video ID:
    api_key <- "YOUR_YOUTUBE_API_KEY"
    video_id <- "YOUR_VIDEO_ID"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages