Posts: 2513 from 2003/3/5
Not sure what aiostreams are trying to solve. They just point back to the bloated twitch website. And by bloated I mean bloated - they even went to the lengths of optimizing their player with wasm... and you really don't need to do this to play HLS, you can just pass the url to the video tag element and that's it.
No idea about any python stuff. You could probably patch the website with a user script though. All you really need is to obtain the m3u8 URL with a valid access token.