How can I perform a keyword search within YouTube comments using python?

240 Views Asked by At

I want to extract comments from youtube videos to apply sentiment analysis but I want to apply the analyse only to the relevant with the video content to avoid spam and ads, so is there any solution to search for keywords in the comments ??

1

There are 1 best solutions below

0
On

Possible you can use beautiful soup to extract comment than you can use re (regular expression) module to search on the basis of keywords pattern.

https://docs.python.org/3/library/re.html