- Install poetry
- Clone this repository
- Run
poetry install
- 🎉
To use the google API's you need to authenticate with credentials. There are multiple way of doing it. Personally I used the gcloud CLI that provides credentials to applications when running locally. The advantage of this is that you don't need to setup, download, and manage API keys. To setup authentication through the Gcloud CLI follow these steps:
- Install Gcloud CLI, instructions here.
- Setup a project in the google cloud platform.
- Activate Youtube's API for the project.
- Set the project as your current project in the Gcloud CLI with
gcloud config set project <project-id>
- Authenticate with
gcloud auth application-default login --scopes=openid,https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/youtube
.
Note: if you will need other authentication scopes you will have to add them in the --scopes
list and reauthenticate.
Note: This took a while to figure out, thank you!