Skip to content

DevRelSquad-blogs/YouTubeDataAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

YouTube Playlist Manager

This is a simple command-line application that demonstrates how to use the YouTube Data API v3 to perform various operations such as searching for videos, retrieving video statistics, creating playlists, and adding videos to playlists.

Prerequisites

  • Python 3.6 or higher
  • A Google account
  • A Google Cloud project with the YouTube Data API v3 enabled
  • OAuth 2.0 Client ID credentials

Setup

  1. Create a Google Cloud Project and Enable the YouTube Data API
  • Go to the Google Cloud Console.
  • Click on the project drop-down and select "New Project".
  • Give your project a name and click "Create".
  • Select your new project from the project drop-down.
  • In the left sidebar, click on "APIs & Services" > "Library".
  • Search for "YouTube Data API v3" and click on it.
  • Click "Enable" to enable the API for your project.
  1. Create OAuth 2.0 Client ID
  • In the Google Cloud Console, go to "APIs & Services" > "Credentials".
  • Click "Create Credentials" and select "OAuth client ID".
  • Select "Desktop app" as the application type.
  • Give your OAuth 2.0 client a name and click "Create".
  • Download the client configuration file and save it as client_secret.json in your project directory.
  1. Clone the Repository and Install Dependencies
  • Clone this repository:

    git clone https://github.com/yourusername/youtube-playlist-manager.git
    cd youtube-playlist-manager
  • Create a virtual environment (optional but recommended):

    python -m venv venv
    source venv/bin/activate  # On Windows, use `venv\Scripts\activate`
  • Install the required packages:

    pip install -r requirements.txt
  • Run the application:

    python youtube_playlist_manager.py

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages