Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- websource = urllib.request.urlopen('http://tmi.twitch.tv/group/user/{}/chatters'.format(channel))
- data = json.loads(websource.read().decode())
- a = ""
- for e in ['broadcaster','vips','moderators','staff','admins','global_mods','viewers']:
- for names in data['chatters'][e]:
- a += "{},".format(names)
- return a[:-1].replace(",",", ")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement