This project provides a script to mass edit YouTube video titles using the YouTube Data API. It's designed to update video titles from "Road to Employment" to "Road to SWE".
DISCLAIMER: this will clear your videos' descriptions and tags
-
Clone this repository:
git clone https://github.com/yourusername/youtube-title-updater.git cd youtube-title-updater
-
Set up a virtual environment:
python -m venv venv source venv/bin/activate # On Windows, use `venv\Scripts\activate`
-
Install dependencies:
pip install -r requirements.txt
-
Set up Google Cloud project and enable YouTube Data API v3.
-
Create OAuth 2.0 credentials and download the client configuration.
-
Rename the downloaded file to
client_secrets.json
and place it in the project root. -
Copy
.env.example
to.env
and update with your configuration.
Run the script:
python src/youtube_updater.py
Run tests:
python -m pytest
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.