Advertisement
Guest User

Untitled

a guest
May 24th, 2019
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.37 KB | None | 0 0
  1.     websource = urllib.request.urlopen('http://tmi.twitch.tv/group/user/{}/chatters'.format(channel))
  2.     data = json.loads(websource.read().decode())
  3.     a = ""
  4.     for e in ['broadcaster','vips','moderators','staff','admins','global_mods','viewers']:
  5.         for names in data['chatters'][e]:
  6.             a += "{},".format(names)
  7.     return a[:-1].replace(",",", ")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement