"When you have a question about the algorithm, I encourage you to replace the word 'algorithm' in your question with ...
ytmusicapi is a Python 3 library to send requests to the YouTube Music API. It emulates YouTube Music web client requests using the user's cookie data for authentication.