Menu

How to Do Sentiment Analysis on YouTube Comments
📰

How to Do Sentiment Analysis on YouTube Comments

DEV Community: datascience·Anurag Kumar·about 7 hours ago
#RxxemfME
#devtodatascience#science#devto#dev#comments
Long article (3424 words) — no AI summary yet.
Reading 0:00
15s threshold

I run Serpent, the API used in the examples below.

To measure sentiment in YouTube comments fairly, read them newest-first, slice them by the age YouTube shows, and weight likes with care. The top ranking changes between calls and can favour old, heavily liked comments. Treat the result as a sample of public text on videos you chose, never a verdict on the audience.

Short answer: To compare a creator's videos, read the newest few hundred comments of each with sort=newest and compare equal-size windows. For a before-and-after around a launch, page newest-first until the labels pass your cutoff, and accept week-sized resolution. For a quick look at what is prominent today, use sort=top and call it a snapshot.

A comment section is where an audience talks back, which makes it tempting raw material for questions like how viewers took a product launch or which of a creator's videos landed best.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.