OAuth authentication
After you have installed ytmusicapi, simply run
ytmusicapi oauth
and follow the instructions. This will create a file oauth.json in the current directory.
You can pass this file to YTMusic as explained in Usage.
This OAuth flow uses the Google API flow for TV devices.