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:-
- Install bot-studio
pip 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:-