Search code examples
pythontwitch

How to automatically connect to a Twitch stream like a normal user


I would like to have a program (Python) that can automatically connect to a stream when it launches. It would act and be recognized like a normal viewer, connected with my Twitch account. I saw the library python-twitch, but it looks more useful for bots (but I may be wrong), and the built-in webbrowser controller, but I think it's too much limited.

I want it to wait for a precise hour (as it always start at nearly the same time), then connect to Twitch with my account and refresh the page until the stream goes on.

Can you help me ? Thanks


Solution

  • Try looking into selenium web browsers. It's basically a normal browser window that you can send commands to through Python. I think that's what you're looking for! Check it out at:

    https://selenium-python.readthedocs.io/