Python - a bytes like object is required, not str

Solution 1:

try

data = twitchdata.decode().split(":")[1]

instead of

data = twitchdata.split(":")[1]