Go to file
David Doblas Jiménez d73a192e27 Updated list of songs 2024-04-09 08:45:46 +02:00
.gitignore ignore venv folder 2023-12-18 16:46:14 +01:00
README.md Update README 2023-12-09 19:21:18 +01:00
breakbeat_temas songs Updated list of songs 2024-04-09 08:45:46 +02:00
youtube_api.py Fix --add flag 2024-01-27 17:31:59 +01:00

README.md

How to use the script

Installation of the libraries

Create a venv:

$ python -m venv api

Activate the venv:

$ source ./api/bin/activate

Install the following libraries:

# Google APIs Client Library for Python
(api) $ pip install --upgrade google-api-python-client

# The google-auth-oauthlib and google-auth-httplib2 libraries for user authorization.
(api) $ pip install --upgrade google-auth-oauthlib google-auth-httplib2

Now we're all set!

Usage of the script

*The following command assumes that you own a YouTube channel with some playlists.

In a terminal with the api venv activated, type:

(api) $ python youtube_api.py channel video_ID

where playlist_name is the name of the playlist where you want to insert the video video_ID.

A new browser instance will pop up where you will have to identify yourself and follow the instructions. Use username, password and phone number from my_credentials.