YouTube Comments to CSV (✓ Official YouTube API, ✘ scraping) w Python
Автор: Samuel Chan
Загружено: 2022-05-24
Просмотров: 12881
YouTube comment scraping (or using web-scraping on YouTube channel) is against YouTube's fair use policy so in this series we'll look at extracting YouTube comments for any channel or video using the official YouTube API instead. Specifically, we will use the CommentThreads resource from the API to collect all youtube comments, including replies, on a specified video or channel and write Python code to export that into a nice CSV.
Timestamps:
00:00 What we're building: Youtube comment scraper
01:54 Youtube Data API Explorer
14:03 YouTube comment scraper setup
25:22 Running our youtube scraper!
28:25 Turning unstructured json to structured list for csv creation
40:46 Creating csv of youtube comments
50:17 Collection more youtube comments by pagination (nextPageToken)
This is Part 2 of the series. Link to Part 1 (YouTube Analytics API w/Python): • YouTube Analytics API with Python (May 202... of this series where we look at using YouTube Analytics API to create nicely-formatted statistics of any YouTube channel in Python.
Links for full code of this video (Part 2): https://github.com/onlyphantom/youtub...
Link to documentation for YouTube Data API (CommentThreads): https://developers.google.com/youtube...
If you enjoy API-related and API development content, let me know in the comments section. Subscribe to the channel and share the video with a friend!
Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: