Skip to content

This project calculates the collective attitude of a youtube chat when a streamer is live using sentiment analysis.

License

Notifications You must be signed in to change notification settings

rdonald/youtube-chat-sentiment-analysis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

YouTube Chat Sentiment Analysis

This project determines the general sentiment of a youtube chat when a streamer is live. Using the YouTube LiveStreamingAPI we can retrieve batches of live chat messages then run sentiment analysis on each message. Based on the results of the newly queried batch of chat messages the application will assign a sentiment score that a streamer and chat can see.

LiveStreamingAPI

https://developers.google.com/youtube/v3/live/getting-started

Specific API methods utilzied:

Google API Keys

To use the LiveStreamingAPI provided by YouTube you will need an API Key. You can obtain this key from https://console.cloud.google.com.

Once there follow these steps:

  • Click on the menu bar (top left)
  • Click on 'APIs & Services'
  • Click into 'Enabled APIs & Services'
  • Navigate into 'Credentials' and Create an API key then enable it on 'YouTube Data API v3'

Once this is done replace 'API KEY HERE' in the App.js with the API Key you just created on the google cloud.

AFINN-Based Sentiment Analysis

This project utilizes the Node.js Sentiment module that uses the AFINN-165 wordlist and emoji sentiment ranking to perform sentiment analysis on blocks of text.

Sentiment provides several features of which this project mainly uses:

  • The ability to append and overwrite word / value pairs from the AFINN wordlist
  • The ability to easily define custom strategies for negation, emphasis, etc

The Node.js Sentiment module can be found here: https://www.npmjs.com/package/sentiment?activeTab=readme

About

This project calculates the collective attitude of a youtube chat when a streamer is live using sentiment analysis.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published