0
自動更新抽搐主持人名單我使用這個API試圖自動更新主持人名單: https://tmi.twitch.tv/group/user/ice3lade/chatters的Python:使用API
我訪問和處理
from urllib.request import urlopen
response = urlopen('https://tmi.twitch.tv/group/user/ice3lade/chatters')
chatlist = response.read()
存儲,但它試圖簡單地用它作爲字典例如
print(chatlist("chatters"))
返回一個錯誤
TypeError: 'bytes' object is not callable
我是一個總的蟒蛇小白所以任何幫助表示讚賞。我如何直接從API中作爲字典訪問它,或者如何將通過閱讀API獲得的數據存儲爲適當的字典?