Is it possible to get a live stream programmatically?

Thank you for your reply.

I’m full aware of the consequences. I don’t want to skip the ads too. I just want to connect directly to the stream.