YouTube Playlist Manager is a Python script that allows you to easily manage your YouTube playlists by adding or removing videos from them.
##Prerequisites Before running the script, you will need to set up a few things:
-
Google API credentials: To access the YouTube API, you will need to set up a Google API project and obtain credentials. You can follow these instructions to get started.
-
Python 3.x: This script requires Python 3.x to run. You can download Python from the official website.
-
Google API client library: You will need to install the Google API client library for Python by running pip install google-api-python-client in your terminal.
To use the script, follow these steps:
- Clone this repository to your local machine.
- Set up the Google API credentials as described above.
- Modify the config in a text editor and update the variables with your own information (e.g. playlist ID, API key, etc.), download your client_secrets.json
- Create a text file containing a list of the videos you want to add from the playlist, with one video per line (list.txt). Save the file in the same directory as the script.
- Open a terminal and navigate to the directory where the script is located.
- Run the script with the command python playlist_manager.py add to add videos to the playlist.
- Follow the prompts in the terminal to select the video file and confirm the changes.
This script is licensed under the MIT License. You are free to use, modify, and distribute the code as you see fit. See the LICENSE file for details.
If you have any questions or feedback, please feel free to contact me.