In reality, the program just needs to take a list of channels, and return a list of their active livestreams. I tried seeing if there's a way to make a simple shell script for this with youtube-dl, but it doesn't seem like it'll be possible.
Anyway I figure I can write it in java or kotlin or something and use the newpipe extractor.