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

YouTube

Python YouTube API Tutorial - Sort a Playlist by Most Popular Videos

Corey Schafer via YouTube

Overview

Learn how to programmatically sort a YouTube playlist by the most popular videos using Python in this 22-minute tutorial. Discover techniques to retrieve and analyze playlist data, create custom sorting algorithms, and generate a list of the most-watched videos. Explore the YouTube API, implement f-strings for formatting, and apply sorting and slicing methods to manipulate data effectively. Follow along with provided code samples and documentation links to enhance your Python skills and create practical solutions for managing YouTube content.

Syllabus

Intro
Overview of Previous Script
Playlist ID
Modify Script
Documentation
Creating YouTube Links
Creating a Global List
Print Video URLs
Print Video Length
Highest Views
List Slicing
Outro

Taught by

Corey Schafer

Reviews

Start your review of Python YouTube API Tutorial - Sort a Playlist by Most Popular Videos

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.