Do you want to scrape comments of a youtube video ? Its easier than you think

In this article, we will see how to scrape comments of any youtube video with only few lines of code. We will use bot-studio library to do it

Below are the steps with code:-

  1. Install bot-studio

2. Import bot-studio

3. Create youtube object, which will open automated chrome browser for youtube.

4. Open the video and scroll down to load the comments

5. Get the video comments and scroll to load more comments.

Here is the full code:-

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store