Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

YouTube Comments to CSV Using Official API - Python Tutorial

Samuel Chan via YouTube

Overview

Learn how to extract YouTube comments using the official YouTube API and Python in this comprehensive tutorial. Discover how to utilize the CommentThreads resource to collect comments and replies from specific videos or channels, and export them to a CSV file. Follow along as the instructor guides you through the YouTube Data API Explorer, setting up the comment scraper, running the code, transforming unstructured JSON data into a structured list, creating the CSV output, and implementing pagination to collect more comments. Gain valuable insights into working with APIs and handling data in Python while adhering to YouTube's fair use policy. Perfect for developers and data enthusiasts looking to ethically gather and analyze YouTube comment data.

Syllabus

What we're building: Youtube comment scraper
Youtube Data API Explorer
YouTube comment scraper setup
Running our youtube scraper!
Turning unstructured json to structured list for csv creation
Creating csv of youtube comments
Collection more youtube comments by pagination nextPageToken

Taught by

Samuel Chan

Reviews

Start your review of YouTube Comments to CSV Using Official API - Python Tutorial

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.