https://github.com/datastudy-nl/youtube-views-title
A script to update a video's title with the current view count
https://github.com/datastudy-nl/youtube-views-title
auto-comment-update auto-title-update automation python youtube-data-api
Last synced: 5 months ago
JSON representation
A script to update a video's title with the current view count
- Host: GitHub
- URL: https://github.com/datastudy-nl/youtube-views-title
- Owner: datastudy-nl
- Created: 2024-01-03T08:48:22.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-01-04T16:22:26.000Z (over 2 years ago)
- Last Synced: 2024-01-05T15:54:21.284Z (over 2 years ago)
- Topics: auto-comment-update, auto-title-update, automation, python, youtube-data-api
- Language: Python
- Homepage:
- Size: 8.79 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# YouTube Video Details Updater
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:
```bash
python3 update_title.py
```