Code to extract comments from YT videos using API
Enter the ID for the video that you need the comments for (incl. replies to comments) in the function call statement in main (videoId is the set of alphanumeric characters after the '=' symbol in the youtube hyperlink)
Create a ".env" file with the api key for the youtube data api v3 (compatible with current code)
There will be a pycache folder created with all the compilation data after the first run of the program.
Dependencies to be downloaded:
googleapiclient youtubeapi csv