我想从某些人的Twitch频道获得用户列表。这是我的当前代码:
j = urllib2.urlopen('http://tmi.twitch.tv/group/user/graf_pk/chatters')
j_obj = json.load(j)
print(j_obj['chatters']['viewers'])我得到的输出是:
[u'pokenuts123', u'realthotsritehere']我希望可以迭代的所有用户名的输出如下:
for x in users:
print x发布于 2015-10-28 04:41:07
结果不需要分析
j = urllib2.urlopen('http://tmi.twitch.tv/group/user/graf_pk/chatters')
j_obj = json.load(j)
u=j_obj['chatters']['viewers']
for x in u:
print xhttps://stackoverflow.com/questions/33382985
复制相似问题