Adblock for YouTube has over 11 million installations. However, it can inject script code into any page uncontrollably.
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.