Go to file
David Doblas Jiménez 5c32daf593 Change order of arguments 2024-04-28 16:28:32 +02:00
.gitignore ignore venv folder 2023-12-18 16:46:14 +01:00
.pre-commit-config.yaml Add .pre-commit 2024-04-28 16:18:59 +02:00
README.md Update README 2023-12-09 19:21:18 +01:00
breakbeat_temas songs Updated list of songs 2024-04-28 16:19:46 +02:00
youtube_api.py Change order of arguments 2024-04-28 16:28:32 +02: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.