Skip to content

adidtdh/YoutubeCommentTakerOutter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

YoutubeCommentTakerOutter

A few lines of python to take the comments from YouTube videos without using the API

Usage

from Youtubecommenttakeroutter import GetComments

This imports the library so that you can use it. Once you have imported it, using it is super simple.

GetComments("video url", number of comments, comment prefix)

Here is an example!

GetComments("https://www.youtube.com/watch?v=dQw4w9WgXcQ", 30, "comment:")

The output will be at least 30 comments and it will look something like this

comment: Nice video!
comment: Bad Video!

Requirements

Selenium + drivers You can get selenium by typing:

pip install selenium

You will also need drivers for your prefered browser. You can get it here. https://selenium.dev/downloads/. To make this, I used Chrome. If you want to use a different browser, change the "Chrome" on line 8 to whatever you want.

driver = webdriver.Chrome()

About

A few lines of python to take the comments from YouTube videos without using the API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages