Skip to content

wrhansen/liked_songs_tracker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Update Notion database with Youtube Music liked songs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages