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 datakund library to do it
Below are the steps with code:-
- Install datakund
pip install datakund
2. Import datakund
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:-