Skip to content

A script to update a video's title with the current view count

Notifications You must be signed in to change notification settings

datastudy-nl/youtube-views-title

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

YouTube Video Details Updater

DataStudy Logo
A datastudy project

This repository contains code to automatically update YouTube video details using the YouTube Data API v3. It updates the video's title and description with the latest statistics like view count, like count, dislike count, and comment count.

Prerequisites

  • Python 3.6 or higher
  • Google account with YouTube Data API v3 enabled
  • google-auth, google-auth-oauthlib, and google-auth-httplib2 libraries

Setup and Installation

  1. Google API Console Configuration:

    • Go to the Google API Console and create a new project.
    • Enable the YouTube Data API v3 for your project.
    • Create credentials for a Desktop app.
    • Download the client secret JSON file.
  2. Environment Setup:

    • Clone the repository: git clone https://github.com/datastudy-nl/youtube-views-title.git
    • Install required libraries: pip install --upgrade google-api-python-client google-auth-httplib2 google-auth-oauthlib
  3. Configuration:

    • Replace 'your-youtube-channel-id' and 'your-video-id' in the script with your actual YouTube channel ID and video ID.
    • Place your downloaded client secrets JSON file in the ./auth/ directory and update its path in the script.

Usage

Run the script with Python:

python3 update_title.py

Releases

No releases published

Packages

No packages published

Languages