hiDaDeng / Youtube-Comment-Sentiment-Analysis

Presenting the YouTube Sentiment Analysis Tool, an advanced program that can extract specific comments from a given YouTube video and apply natural language processing techniques for sentiment analysis. This tool allows for quick analysis of individual comments as well as overall video sentiment.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

YouTube Comment Scraping And Its Sentiment Analysis With Severity And Score

Introducing YouTube Sentiment Analysis Tool, a sophisticated program that can scrape certain sampled comments from given YouTube video and perform sentiment analysis using advanced natural language processing (NLP) techniques. With this tool, you can quickly analyze both individual comments and the overall sentiment of the video.


Table of Contents


Installation

Provide instructions on how to install this project, including any dependencies that need to be installed first. For example:

1. Clone the repository: `git clone https://github.com/thesahibnanda/Youtube-Comment-Sentiment-Analysis.git`
2. Install dependencies: `pip install -r requirements.txt`

Usage

Step 1:

To use this tool just, execute the 'FinalScript.py' using following Terminal Commands:

Windows:

# First Go To The Directory Where Tool Is Saved
PS C:\Users\UserName> py FinalScript.py

Mac:

# First Go To The Directory Where Tool Is Saved
python FinalScript.py

Linux:

# First Go To The Directory Where Tool Is Saved
$ pyhton FinalScript.py

Step 2:

Enter YouTube video link as a command line input.


Working of Each Aspect of the Tool

  1. YouTubeCommentScraper.py

    • This Python3 script scrapes comments from the provided YouTube URL.
    • One can change the amount of comments scraped by changing the ending value of 'for' loop mentioned in the script.
    for i in range(0,10): #Ending Value Can Be Changed
        response = youtube.video_comments()
        data = response['body']
        all_data.extend(data)
  2. PreprocessingData.py

    • This Python script preprocesses data (or cleans data) so that Sentiment Analysis can give better results.
  3. SentimentAndSeverityAnalysis.py

    • This Python script find Sentiment, Score and Severity of a particular given text.

Closing Remarks

About

Presenting the YouTube Sentiment Analysis Tool, an advanced program that can extract specific comments from a given YouTube video and apply natural language processing techniques for sentiment analysis. This tool allows for quick analysis of individual comments as well as overall video sentiment.

License:MIT License


Languages

Language:Python 100.0%