Skip to content

Latest commit

 

History

History
20 lines (14 loc) · 1.49 KB

README.md

File metadata and controls

20 lines (14 loc) · 1.49 KB

Liked Songs

Retrieves liked songs playlist from YouTube music api, and saves them to a Notion database for safe keeping. This program is designed to be run through github actions automation so that your notion database is always updated with your current "liked songs" playlist.

Environment Variables

  • NOTION_API_KEY: Notion API key that you create with your integration
  • NOTION_DATABASE_ID: The ID to the database page your are saving songs data to. Don't forget to connect your intregration to the database: link
  • YOUTUBE_OAUTH_JSON: Json string containing oauth creds. For more information read this: link
  • YOUTUBE_OAUTH_CLIENT_ID: client id from google creds -- use with client secret to login and create oauth.json for access.
  • YOUTUBE_OAUTH_CLIENT_SECRET: client secret from google creds

To setup oauth with youtube data api

  • Follow the instructions found here: https://ytmusicapi.readthedocs.io/en/stable/setup/oauth.html
  • Take the Client ID in the google console and save it as YOUTUBE_OAUTH_CLIENT_ID secret in github actions
  • Take the Client Secret in the google console and save it as YOUTUBE_OAUTH_CLIENT_SECRET secret in github actions
  • After running ytmusicapi oauth follow the instructions to login to your youtube account, take the outputted oauth.json string and save it as YOUTUBE_OAUTH_JSON secret in github actions.