Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
get certain data from json
#1
I'm working on a small project to get better at Python. For that project I need some data from the Twitch API. I want to get all the display_names and viewers from the streams that have the words hi and/or hey and/or hello in their title and broadcast_platform is live. But I can't seem to figure out how to do this. Thanks for the help in advance!

json API response :

{  
   '_total':112,
   'streams':[  
      {  
         '_id':27184896480,
         'game':'Grand Theft Auto V',
         'broadcast_platform':'live',
         'community_id':'',
         'community_ids':[  

         ],
         'viewers':1555,
         'video_height':720,
         'average_fps':60,
         'delay':0,
         'created_at':'2018-01-06T03:06:16Z',
         'is_playlist':False,
         'stream_type':'live',
         'preview':{  
            'small':'https://static-cdn.jtvnw.net/previews-ttv/live_user_thadrius-80x45.jpg',
            'medium':'https://static-cdn.jtvnw.net/previews-ttv/live_user_thadrius-320x180.jpg',
            'large':'https://static-cdn.jtvnw.net/previews-ttv/live_user_thadrius-640x360.jpg',
            'template':'https://static-cdn.jtvnw.net/previews-ttv/live_user_thadrius-{width}x{height}.jpg'
         },
         'channel':{  
            'mature':True,
            'status':'[TFRP] (!Subathon) Johnny Dazzler, Razzle Dazzle! |  https://twitter.com/Thadrius',
            'broadcaster_language':'en',
            'display_name':'Thadrius',
            'game':'Grand Theft Auto V',
            'language':'en',
            '_id':19395644,
            'name':'thadrius',
            'created_at':'2011-01-09T22:32:52.628399Z',
            'updated_at':'2018-01-06T13:36:10.225214Z',
            'partner':True,
            'logo':'https://static-cdn.jtvnw.net/jtv_user_pictures/66cd51153f2e7800-profile_image-300x300.png',
            'video_banner':'https://static-cdn.jtvnw.net/jtv_user_pictures/609c03e956a2db2f-channel_offline_image-1920x1080.jpeg',
            'profile_banner':'https://static-cdn.jtvnw.net/jtv_user_pictures/c4cfa73fa9c167a2-profile_banner-480.jpeg',
            'profile_banner_background_color':'',
            'url':'https://www.twitch.tv/thadrius',
            'views':2742940,
            'followers':80926,
            'broadcaster_type':'',
            'description':''
         }
      },
      {  
         '_id':27179010416,
         'game':'Grand Theft Auto V',
         'broadcast_platform':'live',
         'community_id':'',
         'community_ids':[  

         ],
         'viewers':259,
         'video_height':720,
         'average_fps':60,
         'delay':0,
         'created_at':'2018-01-05T16:59:38Z',
         'is_playlist':False,
         'stream_type':'live',
         'preview':{  
            'small':'https://static-cdn.jtvnw.net/previews-ttv/live_user_honyolo-80x45.jpg',
            'medium':'https://static-cdn.jtvnw.net/previews-ttv/live_user_honyolo-320x180.jpg',
            'large':'https://static-cdn.jtvnw.net/previews-ttv/live_user_honyolo-640x360.jpg',
            'template':'https://static-cdn.jtvnw.net/previews-ttv/live_user_honyolo-{width}x{height}.jpg'
         },
         'channel':{  
            'mature':True,
            'status':'Honathan Yolo - 24H of Honathan - NoPixel GTA RP\n\n',
            'broadcaster_language':'en',
            'display_name':'HonYolo',
            'game':'Grand Theft Auto V',
            'language':'en',
            '_id':49754222,
            'name':'honyolo',
            'created_at':'2013-10-04T04:40:06.886355Z',
            'updated_at':'2018-01-06T13:35:18.174199Z',
            'partner':False,
            'logo':'https://static-cdn.jtvnw.net/jtv_user_pictures/347ae60c8343326d-profile_image-300x300.png',
            'video_banner':'https://static-cdn.jtvnw.net/jtv_user_pictures/018e3a2d1044db68-channel_offline_image-1920x1080.png',
            'profile_banner':'https://static-cdn.jtvnw.net/jtv_user_pictures/honyolo-profile_banner-4e9846d200e548d4-480.png',
            'profile_banner_background_color':'#000000',
            'url':'https://www.twitch.tv/honyolo',
            'views':55054,
            'followers':8819,
            'broadcaster_type':'',
            'description':"Whats up all, I'm Hon Yolo and welcome to the community. We are a family here so come in and enjoy the fun!"
         }
      },
      {  
         '_id':27188210704,
         'game':'Grand Theft Auto V',
         'broadcast_platform':'live',
         'community_id':'6e940c4a-c42f-47d2-af83-0a2c7e47c421',
         'community_ids':[  
            '6e940c4a-c42f-47d2-af83-0a2c7e47c421',
            '739ca24b-ef02-4bad-b859-6953fb9b1cb1',
            '848d95be-90b3-44a5-b143-6e373754c382'
         ],
         'viewers':216,
         'video_height':720,
         'average_fps':60,
         'delay':0,
         'created_at':'2018-01-06T12:07:16Z',
         'is_playlist':False,
         'stream_type':'live',
         'preview':{  
            'small':'https://static-cdn.jtvnw.net/previews-ttv/live_user_darkviperau-80x45.jpg',
            'medium':'https://static-cdn.jtvnw.net/previews-ttv/live_user_darkviperau-320x180.jpg',
            'large':'https://static-cdn.jtvnw.net/previews-ttv/live_user_darkviperau-640x360.jpg',
            'template':'https://static-cdn.jtvnw.net/previews-ttv/live_user_darkviperau-{width}x{height}.jpg'
         },
         'channel':{  
            'mature':False,
            'status':'GTA V Speedrun - Classic% - Let Me Win BabyRage',
            'broadcaster_language':'en',
            'display_name':'DarkViperAU',
            'game':'Grand Theft Auto V',
            'language':'en',
            '_id':57519051,
            'name':'darkviperau',
            'created_at':'2014-02-23T03:57:30.043185Z',
            'updated_at':'2018-01-06T13:35:22.222701Z',
            'partner':True,
            'logo':'https://static-cdn.jtvnw.net/jtv_user_pictures/darkviperau-profile_image-dd31dd859fc5b0ed-300x300.png',
            'video_banner':'https://static-cdn.jtvnw.net/jtv_user_pictures/722f7a9dfbadd6bf-channel_offline_image-1920x1080.png',
            'profile_banner':'https://static-cdn.jtvnw.net/jtv_user_pictures/03e5e4b95c6a5cc8-profile_banner-480.png',
            'profile_banner_background_color':'',
            'url':'https://www.twitch.tv/darkviperau',
            'views':958611,
            'followers':87720,
            'broadcaster_type':'',
            'description':'Australian Grand Theft Auto V Speedrunner attempts to get world records while interacting with chat and being salty at the game. Stream sometimes consists of Dark Souls III speedruns, rants and debates.'
         }
      },
      {  
         '_id':27188569184,
         'game':'Grand Theft Auto V',
         'broadcast_platform':'live',
         'community_id':'0b9d06f9-fe5f-4f69-a4c3-2a9ee5604fb7',
         'community_ids':[  
            '0b9d06f9-fe5f-4f69-a4c3-2a9ee5604fb7',
            'faa66447-7fa8-42bc-bef9-eb75b823caee'
         ],
         'viewers':118,
         'video_height':720,
         'average_fps':30,
         'delay':0,
         'created_at':'2018-01-06T13:07:31Z',
         'is_playlist':False,
         'stream_type':'live',
         'preview':{  
            'small':'https://static-cdn.jtvnw.net/previews-ttv/live_user_official_don_gaming-80x45.jpg',
            'medium':'https://static-cdn.jtvnw.net/previews-ttv/live_user_official_don_gaming-320x180.jpg',
            'large':'https://static-cdn.jtvnw.net/previews-ttv/live_user_official_don_gaming-640x360.jpg',
            'template':'https://static-cdn.jtvnw.net/previews-ttv/live_user_official_don_gaming-{width}x{height}.jpg'
         },
         'channel':{  
            'mature':True,
            'status':'(UK) Racing n Madness - (GIVEAWAY £25 Xbox - PS4 £35 gift cards) - w/ Subs n Viewers',
            'broadcaster_language':'en',
            'display_name':'Official_DoN_Gaming',
            'game':'Grand Theft Auto V',
            'language':'en',
            '_id':62679916,
            'name':'official_don_gaming',
            'created_at':'2014-05-16T10:58:17.909805Z',
            'updated_at':'2018-01-06T13:35:29.233181Z',
            'partner':True,
            'logo':'https://static-cdn.jtvnw.net/jtv_user_pictures/official_don_gaming-profile_image-a7e62079f9ee69eb-300x300.png',
            'video_banner':'https://static-cdn.jtvnw.net/jtv_user_pictures/official_don_gaming-channel_offline_image-1582dc8f374d084c-1920x1080.png',
            'profile_banner':'https://static-cdn.jtvnw.net/jtv_user_pictures/official_don_gaming-profile_banner-fbc00bcf7955dc71-480.png',
            'profile_banner_background_color':'#000000',
            'url':'https://www.twitch.tv/official_don_gaming',
            'views':469209,
            'followers':120305,
            'broadcaster_type':'',
            'description':'Official DoN Gaming started as a Pro Battlefield team, but i have now switched it over to full time streaming and hope to bring you as many new games as possible.'
         }
      },
      {  
         '_id':27188488880,
         'game':'Grand Theft Auto V',
         'broadcast_platform':'live',
         'community_id':'53164dd1-b11d-4a87-931c-3802273f31d4',
         'community_ids':[  
            '53164dd1-b11d-4a87-931c-3802273f31d4'
         ],
         'viewers':94,
         'video_height':720,
         'average_fps':60,
         'delay':0,
         'created_at':'2018-01-06T12:55:08Z',
         'is_playlist':False,
         'stream_type':'live',
         'preview':{  
            'small':'https://static-cdn.jtvnw.net/previews-ttv/live_user_blizzehd-80x45.jpg',
            'medium':'https://static-cdn.jtvnw.net/previews-ttv/live_user_blizzehd-320x180.jpg',
            'large':'https://static-cdn.jtvnw.net/previews-ttv/live_user_blizzehd-640x360.jpg',
            'template':'https://static-cdn.jtvnw.net/previews-ttv/live_user_blizzehd-{width}x{height}.jpg'
         },
         'channel':{  
            'mature':False,
            'status':'Mr.Chow - Nopixel - "The Mafia"  - The Corleone Syndicate',
            'broadcaster_language':'en',
            'display_name':'Blizzehd',
            'game':'Grand Theft Auto V',
            'language':'en',
            '_id':52375467,
            'name':'blizzehd',
            'created_at':'2013-11-29T21:28:24.815009Z',
            'updated_at':'2018-01-06T13:35:31.15037Z',
            'partner':True,
            'logo':'https://static-cdn.jtvnw.net/jtv_user_pictures/blizzehd-profile_image-dbcb6a4cb34f28ef-300x300.jpeg',
            'video_banner':'https://static-cdn.jtvnw.net/jtv_user_pictures/blizzehd-channel_offline_image-2e0a59d0e8cb8293-1920x1080.png',
            'profile_banner':'https://static-cdn.jtvnw.net/jtv_user_pictures/blizzehd-profile_banner-f62a87f70442eeb8-480.png',
            'profile_banner_background_color':'#000000',
            'url':'https://www.twitch.tv/blizzehd',
            'views':537404,
            'followers':38862,
            'broadcaster_type':'',
            'description':'Hello! I play videogames from time to time! Enjoy your stay!'
         }
      },
      {  
         '_id':27188127680,
         'game':'Grand Theft Auto V',
         'broadcast_platform':'live',
         'community_id':'fd0eab99-832a-4d7e-8cc0-04d73deb2e54',
         'community_ids':[  
            'fd0eab99-832a-4d7e-8cc0-04d73deb2e54'
         ],
         'viewers':45,
         'video_height':900,
         'average_fps':60,
         'delay':0,
         'created_at':'2018-01-06T11:52:34Z',
         'is_playlist':False,
         'stream_type':'live',
         'preview':{  
            'small':'https://static-cdn.jtvnw.net/previews-ttv/live_user_sams-80x45.jpg',
            'medium':'https://static-cdn.jtvnw.net/previews-ttv/live_user_sams-320x180.jpg',
            'large':'https://static-cdn.jtvnw.net/previews-ttv/live_user_sams-640x360.jpg',
            'template':'https://static-cdn.jtvnw.net/previews-ttv/live_user_sams-{width}x{height}.jpg'
         },
         'channel':{  
            'mature':False,
            'status':'Recruit Jones | NoPixel | @SAMZHIT',
            'broadcaster_language':'en',
            'display_name':'Sams',
            'game':'Grand Theft Auto V',
            'language':'en',
            '_id':87065346,
            'name':'sams',
            'created_at':'2015-03-31T16:37:38.570008Z',
            'updated_at':'2018-01-06T13:35:08.958494Z',
            'partner':False,
            'logo':'https://static-cdn.jtvnw.net/jtv_user_pictures/cd3251f2-6fff-4920-96b7-a48385b37a50-profile_image-300x300.png',
            'video_banner':None,
            'profile_banner':'https://static-cdn.jtvnw.net/jtv_user_pictures/4d4c58ce4450cc7f-profile_banner-480.jpeg',
            'profile_banner_background_color':'',
            'url':'https://www.twitch.tv/sams',
            'views':123916,
            'followers':13013,
            'broadcaster_type':'',
            'description':"I'm human"
         }
      },
      {  
         '_id':27187319296,
         'game':'Grand Theft Auto V',
         'broadcast_platform':'live',
         'community_id':'6fbfd623-7554-4969-b552-2c3c617a1360',
         'community_ids':[  
            '6fbfd623-7554-4969-b552-2c3c617a1360',
            '8ce62032-3a46-4b95-a8d2-0c9a2297831b',
            'ab18bbee-75ed-409d-aba9-8d4e3e2e541a'
         ],
         'viewers':24,
         'video_height':720,
         'average_fps':30,
         'delay':0,
         'created_at':'2018-01-06T09:06:27Z',
         'is_playlist':False,
         'stream_type':'live',
         'preview':{  
            'small':'https://static-cdn.jtvnw.net/previews-ttv/live_user_kittenqueengaming-80x45.jpg',
            'medium':'https://static-cdn.jtvnw.net/previews-ttv/live_user_kittenqueengaming-320x180.jpg',
            'large':'https://static-cdn.jtvnw.net/previews-ttv/live_user_kittenqueengaming-640x360.jpg',
            'template':'https://static-cdn.jtvnw.net/previews-ttv/live_user_kittenqueengaming-{width}x{height}.jpg'
         },
         'channel':{  
            'mature':True,
            'status':'Space Turtles RP | Gonna have some fun | Lily Sky',
            'broadcaster_language':'en',
            'display_name':'KittenQueenGaming',
            'game':'Grand Theft Auto V',
            'language':'en',
            '_id':140729095,
            'name':'kittenqueengaming',
            'created_at':'2016-11-30T08:13:37.338664Z',
            'updated_at':'2018-01-06T13:40:22.343177Z',
            'partner':False,
            'logo':'https://static-cdn.jtvnw.net/jtv_user_pictures/5587bf6840e859d9-profile_image-300x300.png',
            'video_banner':'https://static-cdn.jtvnw.net/jtv_user_pictures/3c8af2c21a374ad4-channel_offline_image-1920x1080.jpeg',
            'profile_banner':'https://static-cdn.jtvnw.net/jtv_user_pictures/c9461b7b37fda8aa-profile_banner-480.jpeg',
            'profile_banner_background_color':'',
            'url':'https://www.twitch.tv/kittenqueengaming',
            'views':39343,
            'followers':9773,
            'broadcaster_type':'',
            'description':'well im a stay at home mom with 2 boys and just like to hang and have fun :)'
         }
      },
      {  
         '_id':27188636672,
         'game':'Grand Theft Auto V',
         'broadcast_platform':'live',
         'community_id':'4d2aef2c-35f5-40b3-8a0e-35a79d7175c5',
         'community_ids':[  
            '4d2aef2c-35f5-40b3-8a0e-35a79d7175c5',
            '6ad9b8e9-dace-4296-9267-2afa1503da1e',
            'ddac53a8-05bb-4299-a18d-a7944947ea7e'
         ],
         'viewers':22,
         'video_height':720,
         'average_fps':60,
         'delay':0,
         'created_at':'2018-01-06T13:18:12Z',
         'is_playlist':False,
         'stream_type':'live',
         'preview':{  
            'small':'https://static-cdn.jtvnw.net/previews-ttv/live_user_pranasplays-80x45.jpg',
            'medium':'https://static-cdn.jtvnw.net/previews-ttv/live_user_pranasplays-320x180.jpg',
            'large':'https://static-cdn.jtvnw.net/previews-ttv/live_user_pranasplays-640x360.jpg',
            'template':'https://static-cdn.jtvnw.net/previews-ttv/live_user_pranasplays-{width}x{height}.jpg'
         },
         'channel':{  
            'mature':False,
            'status':'?Kariaujam su Potato PC [LT/EN]',
            'broadcaster_language':'en',
            'display_name':'PranasPlays',
            'game':'Grand Theft Auto V',
            'language':'en',
            '_id':62059120,
            'name':'pranasplays',
            'created_at':'2014-05-03T18:30:17.936081Z',
            'updated_at':'2018-01-06T13:35:42.371838Z',
            'partner':False,
            'logo':'https://static-cdn.jtvnw.net/jtv_user_pictures/186934d2c8b98d49-profile_image-300x300.png',
            'video_banner':'https://static-cdn.jtvnw.net/jtv_user_pictures/pranasplays-channel_offline_image-e8c79a73926e7f9a-1920x1080.png',
            'profile_banner':'https://static-cdn.jtvnw.net/jtv_user_pictures/pranasplays-profile_banner-02b03df2f8c4775e-480.jpeg',
            'profile_banner_background_color':'#000000',
            'url':'https://www.twitch.tv/pranasplays',
            'views':111420,
            'followers':5609,
            'broadcaster_type':'',
            'description':'Gaming Channel'
         }
      },
      {  
         '_id':27187976304,
         'game':'Grand Theft Auto V',
         'broadcast_platform':'live',
         'community_id':'53164dd1-b11d-4a87-931c-3802273f31d4',
         'community_ids':[  
            '53164dd1-b11d-4a87-931c-3802273f31d4',
            'fd0eab99-832a-4d7e-8cc0-04d73deb2e54'
         ],
         'viewers':20,
         'video_height':720,
         'average_fps':30,
         'delay':0,
         'created_at':'2018-01-06T11:23:42Z',
         'is_playlist':False,
         'stream_type':'live',
         'preview':{  
            'small':'https://static-cdn.jtvnw.net/previews-ttv/live_user_troph_a_lofe-80x45.jpg',
            'medium':'https://static-cdn.jtvnw.net/previews-ttv/live_user_troph_a_lofe-320x180.jpg',
            'large':'https://static-cdn.jtvnw.net/previews-ttv/live_user_troph_a_lofe-640x360.jpg',
            'template':'https://static-cdn.jtvnw.net/previews-ttv/live_user_troph_a_lofe-{width}x{height}.jpg'
         },
         'channel':{  
            'mature':True,
            'status':'No Pixel | Sadie Falls \n',
            'broadcaster_language':'en',
            'display_name':'troph_a_lofe',
            'game':'Grand Theft Auto V',
            'language':'en-gb',
            '_id':136809899,
            'name':'troph_a_lofe',
            'created_at':'2016-10-11T02:36:06.522023Z',
            'updated_at':'2018-01-06T13:35:57.434236Z',
            'partner':False,
            'logo':'https://static-cdn.jtvnw.net/jtv_user_pictures/11fc7702ab695a59-profile_image-300x300.png',
            'video_banner':'https://static-cdn.jtvnw.net/jtv_user_pictures/ed6259546e06752a-channel_offline_image-1920x1080.png',
            'profile_banner':'https://static-cdn.jtvnw.net/jtv_user_pictures/acc88015601eff97-profile_banner-480.png',
            'profile_banner_background_color':'',
            'url':'https://www.twitch.tv/troph_a_lofe',
            'views':6921,
            'followers':418,
            'broadcaster_type':'',
            'description':'i am potato'
         }
      },
      {  
         '_id':27188047760,
         'game':'Grand Theft Auto V',
         'broadcast_platform':'live',
         'community_id':'8c2da0e9-a894-44b8-84b9-cb288a218234',
         'community_ids':[  
            '8c2da0e9-a894-44b8-84b9-cb288a218234',
            '8ddaba29-e9ec-495f-9e0a-28ecf143b97d',
            'ab18bbee-75ed-409d-aba9-8d4e3e2e541a'
         ],
         'viewers':19,
         'video_height':720,
         'average_fps':60,
         'delay':0,
         'created_at':'2018-01-06T11:37:29Z',
         'is_playlist':False,
         'stream_type':'live',
         'preview':{  
            'small':'https://static-cdn.jtvnw.net/previews-ttv/live_user_sausage_destroyer-80x45.jpg',
            'medium':'https://static-cdn.jtvnw.net/previews-ttv/live_user_sausage_destroyer-320x180.jpg',
            'large':'https://static-cdn.jtvnw.net/previews-ttv/live_user_sausage_destroyer-640x360.jpg',
            'template':'https://static-cdn.jtvnw.net/previews-ttv/live_user_sausage_destroyer-{width}x{height}.jpg'
         },
         'channel':{  
            'mature':True,
            'status':'The Lavender Potato cop AKA Chloe Camelia | NoPixel ',
            'broadcaster_language':'en',
            'display_name':'Sausage_Destroyer',
            'game':'Grand Theft Auto V',
            'language':'en',
            '_id':106972346,
            'name':'sausage_destroyer',
            'created_at':'2015-11-13T09:41:59.373726Z',
            'updated_at':'2018-01-06T13:31:44.552801Z',
            'partner':False,
            'logo':'https://static-cdn.jtvnw.net/jtv_user_pictures/sausage_destroyer-profile_image-e399a5f80ddddef6-300x300.jpeg',
            'video_banner':None,
            'profile_banner':'https://static-cdn.jtvnw.net/jtv_user_pictures/69b677718fff99b6-profile_banner-480.png',
            'profile_banner_background_color':'',
            'url':'https://www.twitch.tv/sausage_destroyer',
            'views':3521,
            'followers':584,
            'broadcaster_type':'',
            'description':"Potty mouthed, hammer swingin' girly goldsmith who likes gaming and destroying meat products"
         }
      },
      {  
         '_id':27187649904,
         'game':'Grand Theft Auto V',
         'broadcast_platform':'live',
         'community_id':'53164dd1-b11d-4a87-931c-3802273f31d4',
         'community_ids':[  
            '53164dd1-b11d-4a87-931c-3802273f31d4',
            'ab18bbee-75ed-409d-aba9-8d4e3e2e541a',
            'e7774f07-11a8-4b37-9d87-d491e46e46c1'
         ],
         'viewers':15,
         'video_height':720,
         'average_fps':30,
         'delay':0,
         'created_at':'2018-01-06T10:17:31Z',
         'is_playlist':False,
         'stream_type':'live',
         'preview':{  
            'small':'https://static-cdn.jtvnw.net/previews-ttv/live_user_itsjustbishop-80x45.jpg',
            'medium':'https://static-cdn.jtvnw.net/previews-ttv/live_user_itsjustbishop-320x180.jpg',
            'large':'https://static-cdn.jtvnw.net/previews-ttv/live_user_itsjustbishop-640x360.jpg',
            'template':'https://static-cdn.jtvnw.net/previews-ttv/live_user_itsjustbishop-{width}x{height}.jpg'
         },
         'channel':{  
            'mature':True,
            'status':'Chilling | #Follow | Discounted Subs! New Emotes! | NoPixel | GTA | ',
            'broadcaster_language':'en',
            'display_name':'itsjustbishop',
            'game':'Grand Theft Auto V',
            'language':'en',
            '_id':74694684,
            'name':'itsjustbishop',
            'created_at':'2014-11-07T22:18:14.802922Z',
            'updated_at':'2018-01-06T13:35:08.125148Z',
            'partner':False,
            'logo':'https://static-cdn.jtvnw.net/jtv_user_pictures/itsjustbishop-profile_image-5e548ffa57e5a245-300x300.jpeg',
            'video_banner':None,
            'profile_banner':'https://static-cdn.jtvnw.net/jtv_user_pictures/itsjustbishop-profile_banner-c8c2b60d9c478f77-480.jpeg',
            'profile_banner_background_color':'#ba0000',
            'url':'https://www.twitch.tv/itsjustbishop',
            'views':4777,
            'followers':504,
            'broadcaster_type':'',
            'description':'Games, Girlfriend, & Our Awesome Animals. Get a drink, get comfy, and enjoy the show!\r'
         }
      },
      {  
         '_id':27187386592,
         'game':'Grand Theft Auto V',
         'broadcast_platform':'live',
         'community_id':'',
         'community_ids':[  

         ],
         'viewers':15,
         'video_height':720,
         'average_fps':30,
         'delay':0,
         'created_at':'2018-01-06T09:21:22Z',
         'is_playlist':False,
         'stream_type':'live',
         'preview':{  
            'small':'https://static-cdn.jtvnw.net/previews-ttv/live_user_murred-80x45.jpg',
            'medium':'https://static-cdn.jtvnw.net/previews-ttv/live_user_murred-320x180.jpg',
            'large':'https://static-cdn.jtvnw.net/previews-ttv/live_user_murred-640x360.jpg',
            'template':'https://static-cdn.jtvnw.net/previews-ttv/live_user_murred-{width}x{height}.jpg'
         },
         'channel':{  
            'mature':False,
            'status':'Smile It Makes The World A Better Place   (UK/PC)',
            'broadcaster_language':'en',
            'display_name':'Murred',
            'game':'Grand Theft Auto V',
            'language':'en-gb',
            '_id':59156243,
            'name':'murred',
            'created_at':'2014-03-18T07:45:00.643987Z',
            'updated_at':'2018-01-06T13:31:41.447669Z',
            'partner':False,
            'logo':'https://static-cdn.jtvnw.net/jtv_user_pictures/96ec9abfdf511a85-profile_image-300x300.png',
            'video_banner':None,
            'profile_banner':'https://static-cdn.jtvnw.net/jtv_user_pictures/97c7a986a89244d7-profile_banner-480.jpeg',
            'profile_banner_background_color':'#000000',
            'url':'https://www.twitch.tv/murred',
            'views':12745,
            'followers':953,
            'broadcaster_type':'',
            'description':'Hey Guys and Gals, welcome to my broadcast. I hope you enjoy the game i am playing. If you any games you want to see me play feel free to ask on the chat or tweet me @murredsin  . I always have the chat open so come say hi  :-) '
         }
      },
      {  
         '_id':27188743488,
         'game':'Grand Theft Auto V',
         'broadcast_platform':'live',
         'community_id':'',
         'community_ids':[  

         ],
         'viewers':14,
         'video_height':1080,
         'average_fps':50,
         'delay':0,
         'created_at':'2018-01-06T13:34:57Z',
         'is_playlist':False,
         'stream_type':'live',
         'preview':{  
            'small':'https://static-cdn.jtvnw.net/previews-ttv/live_user_acetheocarinamaker-80x45.jpg',
            'medium':'https://static-cdn.jtvnw.net/previews-ttv/live_user_acetheocarinamaker-320x180.jpg',
            'large':'https://static-cdn.jtvnw.net/previews-ttv/live_user_acetheocarinamaker-640x360.jpg',
            'template':'https://static-cdn.jtvnw.net/previews-ttv/live_user_acetheocarinamaker-{width}x{height}.jpg'
         },
         'channel':{  
            'mature':False,
            'status':'GTA Online: Chill Morning Stream',
            'broadcaster_language':'en',
            'display_name':'AceTheOcarinaMaker',
            'game':'Grand Theft Auto V',
            'language':'en',
            '_id':156231052,
            'name':'acetheocarinamaker',
            'created_at':'2017-05-08T16:46:01.382118Z',
            'updated_at':'2018-01-06T13:35:14.313257Z',
            'partner':False,
            'logo':'https://static-cdn.jtvnw.net/jtv_user_pictures/acetheocarinamaker-profile_image-27ea3ee7a0a39859-300x300.jpeg',
            'video_banner':'https://static-cdn.jtvnw.net/jtv_user_pictures/acetheocarinamaker-channel_offline_image-8f4e7f5dd79dce4d-1920x1080.jpeg',
            'profile_banner':'https://static-cdn.jtvnw.net/jtv_user_pictures/acetheocarinamaker-profile_banner-62d15cc2c1f966de-480.jpeg',
            'profile_banner_background_color':'',
            'url':'https://www.twitch.tv/acetheocarinamaker',
            'views':4949,
            'followers':831,
            'broadcaster_type':'',
            'description':"I am AceTheOcarinaMaker. I am best known for my channel on youtube under the same name and it's TF2 related content."
         }
      },
      {  
         '_id':27188608576,
         'game':'Grand Theft Auto V',
         'broadcast_platform':'xbox',
         'community_id':'68393226-e40c-4831-a424-5d5347fa2f3e',
         'community_ids':[  
            '68393226-e40c-4831-a424-5d5347fa2f3e',
            'fb4e9a1c-176b-494a-85c4-c1168088c680'
         ],
         'viewers':13,
         'video_height':720,
         'average_fps':30.0450676014,
         'delay':0,
         'created_at':'2018-01-06T13:13:56Z',
         'is_playlist':False,
         'stream_type':'live',
         'preview':{  
            'small':'https://static-cdn.jtvnw.net/previews-ttv/live_user_m5godfatherm5-80x45.jpg',
            'medium':'https://static-cdn.jtvnw.net/previews-ttv/live_user_m5godfatherm5-320x180.jpg',
            'large':'https://static-cdn.jtvnw.net/previews-ttv/live_user_m5godfatherm5-640x360.jpg',
            'template':'https://static-cdn.jtvnw.net/previews-ttv/live_user_m5godfatherm5-{width}x{height}.jpg'
         },
         'channel':{  
            'mature':True,
            'status':'#TeamMafia founder Spread the love around and support.',
            'broadcaster_language':'en',
            'display_name':'M5godfatherM5',
            'game':'Grand Theft Auto V',
            'language':'en',
            '_id':91423794,
            'name':'m5godfatherm5',
            'created_at':'2015-05-19T04:07:41.478399Z',
            'updated_at':'2018-01-06T13:35:09.793331Z',
            'partner':False,
            'logo':'https://static-cdn.jtvnw.net/jtv_user_pictures/f1917eaaba34217b-profile_image-300x300.png',
            'video_banner':'https://static-cdn.jtvnw.net/jtv_user_pictures/d40dd932df1316b3-channel_offline_image-1920x1080.png',
            'profile_banner':'https://static-cdn.jtvnw.net/jtv_user_pictures/aabccf7801af6fa0-profile_banner-480.png',
            'profile_banner_background_color':'#292727',
            'url':'https://www.twitch.tv/m5godfatherm5',
            'views':31189,
            'followers':6886,
            'broadcaster_type':'',
            'description':" !!!!!!!!!!  We make THEISE systems what they are today with out us there is no fun . Lets get it in and have some fun and hang out bruh.I'm very active and will try my best u play with all y'all if I can.Very into giving back to the Streaming community."
         }
      },
      {  
         '_id':27187783408,
         'game':'Grand Theft Auto V',
         'broadcast_platform':'live',
         'community_id':'53164dd1-b11d-4a87-931c-3802273f31d4',
         'community_ids':[  
            '53164dd1-b11d-4a87-931c-3802273f31d4',
            'ab18bbee-75ed-409d-aba9-8d4e3e2e541a',
            'fd0eab99-832a-4d7e-8cc0-04d73deb2e54'
         ],
         'viewers':13,
         'video_height':1080,
         'average_fps':30,
         'delay':0,
         'created_at':'2018-01-06T10:45:46Z',
         'is_playlist':False,
         'stream_type':'live',
         'preview':{  
            'small':'https://static-cdn.jtvnw.net/previews-ttv/live_user_stlouieyabish-80x45.jpg',
            'medium':'https://static-cdn.jtvnw.net/previews-ttv/live_user_stlouieyabish-320x180.jpg',
            'large':'https://static-cdn.jtvnw.net/previews-ttv/live_user_stlouieyabish-640x360.jpg',
            'template':'https://static-cdn.jtvnw.net/previews-ttv/live_user_stlouieyabish-{width}x{height}.jpg'
         },
         'channel':{  
            'mature':False,
            'status':'TheFamilyRP  |  Carlos Rodriguez  |  New Wheels  |  The Cities Finest',
            'broadcaster_language':'en',
            'display_name':'StLoUieYaBish',
            'game':'Grand Theft Auto V',
            'language':'en',
            '_id':91022308,
            'name':'stlouieyabish',
            'created_at':'2015-05-14T12:03:54.8084Z',
            'updated_at':'2018-01-06T13:32:23.024027Z',
            'partner':False,
            'logo':'https://static-cdn.jtvnw.net/jtv_user_pictures/stlouieyabish-profile_image-b6771df2558f33a2-300x300.jpeg',
            'video_banner':'https://static-cdn.jtvnw.net/jtv_user_pictures/f8d52fa50f7e74cf-channel_offline_image-1920x1080.png',
            'profile_banner':'https://static-cdn.jtvnw.net/jtv_user_pictures/f93f74a318daaf77-profile_banner-480.png',
            'profile_banner_background_color':'',
            'url':'https://www.twitch.tv/stlouieyabish',
            'views':11576,
            'followers':2101,
            'broadcaster_type':'',
            'description':'Started streaming clash of clans a few months ago, been taking a small break till i get my new gaming PC built then plan on streaming more games than just clash. Just be patient and ill be back in action soon. Yeeeeee'
         }
      },
      {  
         '_id':27188361712,
         'game':'Grand Theft Auto V',
         'broadcast_platform':'live',
         'community_id':'0b9d06f9-fe5f-4f69-a4c3-2a9ee5604fb7',
         'community_ids':[  
            '0b9d06f9-fe5f-4f69-a4c3-2a9ee5604fb7',
            'ab18bbee-75ed-409d-aba9-8d4e3e2e541a',
            'c83e4683-e7e7-4bb0-9079-a75abfb10c99'
         ],
         'viewers':11,
         'video_height':720,
         'average_fps':60,
         'delay':0,
         'created_at':'2018-01-06T12:33:47Z',
         'is_playlist':False,
         'stream_type':'live',
         'preview':{  
            'small':'https://static-cdn.jtvnw.net/previews-ttv/live_user_jamie254-80x45.jpg',
            'medium':'https://static-cdn.jtvnw.net/previews-ttv/live_user_jamie254-320x180.jpg',
            'large':'https://static-cdn.jtvnw.net/previews-ttv/live_user_jamie254-640x360.jpg',
            'template':'https://static-cdn.jtvnw.net/previews-ttv/live_user_jamie254-{width}x{height}.jpg'
         },
         'channel':{  
            'mature':True,
            'status':'[UK] 24 Hr stream lets smash this..... GTARP Life in Paleto is never dull.....',
            'broadcaster_language':'en',
            'display_name':'Jamie254',
            'game':'Grand Theft Auto V',
            'language':'en-gb',
            '_id':54406241,
            'name':'jamie254',
            'created_at':'2014-01-04T17:43:58.699935Z',
            'updated_at':'2018-01-06T13:35:18.068186Z',
            'partner':False,
            'logo':'https://static-cdn.jtvnw.net/jtv_user_pictures/jamie254-profile_image-964fddfe553e72cd-300x300.png',
            'video_banner':'https://static-cdn.jtvnw.net/jtv_user_pictures/jamie254-channel_offline_image-488cc5c17a369d84-1920x1080.jpeg',
            'profile_banner':'https://static-cdn.jtvnw.net/jtv_user_pictures/jamie254-profile_banner-849d7bde8e308493-480.jpeg',
            'profile_banner_background_color':'',
            'url':'https://www.twitch.tv/jamie254',
            'views':3447,
            'followers':218,
            'broadcaster_type':'',
            'description':''
         }
      },
      {  
         '_id':27185107760,
         'game':'Grand Theft Auto V',
         'broadcast_platform':'live',
         'community_id':'',
         'community_ids':[  

         ],
         'viewers':9,
         'video_height':720,
         'average_fps':30,
         'delay':0,
         'created_at':'2018-01-06T03:30:16Z',
         'is_playlist':False,
         'stream_type':'live',
         'preview':{  
            'small':'https://static-cdn.jtvnw.net/previews-ttv/live_user_sentdex-80x45.jpg',
            'medium':'https://static-cdn.jtvnw.net/previews-ttv/live_user_sentdex-320x180.jpg',
            'large':'https://static-cdn.jtvnw.net/previews-ttv/live_user_sentdex-640x360.jpg',
            'template':'https://static-cdn.jtvnw.net/previews-ttv/live_user_sentdex-{width}x{height}.jpg'
         },
         'channel':{  
            'mature':True,
            'status':'Deep Learning Agent in GTA (Convolutional Neural Network) - V0.07',
            'broadcaster_language':'en',
            'display_name':'sentdex',
            'game':'Grand Theft Auto V',
            'language':'en',
            '_id':153921092,
            'name':'sentdex',
            'created_at':'2017-04-19T17:56:12.870165Z',
            'updated_at':'2018-01-06T13:31:00.46865Z',
            'partner':False,
            'logo':'https://static-cdn.jtvnw.net/jtv_user_pictures/95def848444a9b51-profile_image-300x300.png',
            'video_banner':'https://static-cdn.jtvnw.net/jtv_user_pictures/sentdex-channel_offline_image-4239ce82ebdbeb92-1920x1080.png',
            'profile_banner':'https://static-cdn.jtvnw.net/jtv_user_pictures/5cf4b02866b56a16-profile_banner-480.png',
            'profile_banner_background_color':'',
            'url':'https://www.twitch.tv/sentdex',
            'views':1281151,
            'followers':55096,
            'broadcaster_type':'',
            'description':'I like to build things. Programming is neat.\rhttps://pythonprogramming.net\rhttps://hkinsley.com'
         }
      },
      {  
         '_id':27188493760,
         'game':'Grand Theft Auto V',
         'broadcast_platform':'live',
         'community_id':'0d7a2414-ac87-473d-965c-5fd28fb7ecdf',
         'community_ids':[  
            '0d7a2414-ac87-473d-965c-5fd28fb7ecdf',
            '831ccb45-e159-4873-a61b-74693bdc5756',
            'f8676eee-bcbe-4b16-a249-7ad69db07eb9'
         ],
         'viewers':8,
         'video_height':720,
         'average_fps':30,
         'delay':0,
         'created_at':'2018-01-06T12:55:56Z',
         'is_playlist':False,
         'stream_type':'live',
         'preview':{  
            'small':'https://static-cdn.jtvnw.net/previews-ttv/live_user_scorpionkingdom-80x45.jpg',
            'medium':'https://static-cdn.jtvnw.net/previews-ttv/live_user_scorpionkingdom-320x180.jpg',
            'large':'https://static-cdn.jtvnw.net/previews-ttv/live_user_scorpionkingdom-640x360.jpg',
            'template':'https://static-cdn.jtvnw.net/previews-ttv/live_user_scorpionkingdom-{width}x{height}.jpg'
         },
         'channel':{  
            'mature':False,
            'status':'[TeEm|SC|TSS] Scorpion grinding GTA. Relax, we are professionals',
            'broadcaster_language':'en',
            'display_name':'ScorpionKingdom',
            'game':'Grand Theft Auto V',
            'language':'en',
            '_id':83733968,
            'name':'scorpionkingdom',
            'created_at':'2015-02-25T11:47:33.905774Z',
            'updated_at':'2018-01-06T13:33:06.71155Z',
            'partner':False,
            'logo':'https://static-cdn.jtvnw.net/jtv_user_pictures/e40e8be27736c678-profile_image-300x300.png',
            'video_banner':'https://static-cdn.jtvnw.net/jtv_user_pictures/f52e413f70bf83c2-channel_offline_image-1920x1080.png',
            'profile_banner':'https://static-cdn.jtvnw.net/jtv_user_pictures/f631ebaf886cf5d7-profile_banner-480.png',
            'profile_banner_background_color':'',
            'url':'https://www.twitch.tv/scorpionkingdom',
            'views':13767,
            'followers':710,
            'broadcaster_type':'',
            'description':''
         }
      },
      {  
         '_id':27187375728,
         'game':'Grand Theft Auto V',
         'broadcast_platform':'ps4',
         'community_id':'',
         'community_ids':[  

         ],
         'viewers':8,
         'video_height':540,
         'average_fps':30.0150075038,
         'delay':0,
         'created_at':'2018-01-06T09:18:57Z',
         'is_playlist':False,
         'stream_type':'live',
         'preview':{  
            'small':'https://static-cdn.jtvnw.net/previews-ttv/live_user_krystaalized_-80x45.jpg',
            'medium':'https://static-cdn.jtvnw.net/previews-ttv/live_user_krystaalized_-320x180.jpg',
            'large':'https://static-cdn.jtvnw.net/previews-ttv/live_user_krystaalized_-640x360.jpg',
            'template':'https://static-cdn.jtvnw.net/previews-ttv/live_user_krystaalized_-{width}x{height}.jpg'
         },
         'channel':{  
            'mature':False,
            'status':'Titles are lame >.<',
            'broadcaster_language':'en',
            'display_name':'krystaalized_',
            'game':'Grand Theft Auto V',
            'language':'en',
            '_id':123489415,
            'name':'krystaalized_',
            'created_at':'2016-05-05T01:49:19.84906Z',
            'updated_at':'2018-01-06T13:01:36.193909Z',
            'partner':False,
            'logo':'https://static-cdn.jtvnw.net/jtv_user_pictures/c95f85ac-e1e0-43fa-8af6-28fb922228bf-profile_image-300x300.png',
            'video_banner':None,
            'profile_banner':'https://static-cdn.jtvnw.net/jtv_user_pictures/5738a65bddc0c3e3-profile_banner-480.jpeg',
            'profile_banner_background_color':'',
            'url':'https://www.twitch.tv/krystaalized_',
            'views':645,
            'followers':154,
            'broadcaster_type':'',
            'description':'A loss ain’t a loss, it’s a lesson. Appreciate the pain, it’s a blessing. '
         }
      },
      {  
         '_id':27188592096,
         'game':'Grand Theft Auto V',
         'broadcast_platform':'live',
         'community_id':'01e9a166-cce2-4530-b0a2-28bf5a60a96c',
         'community_ids':[  
            '01e9a166-cce2-4530-b0a2-28bf5a60a96c',
            '0c567ae1-45dc-4b68-b16f-43ca84253f45',
            '0d7a2414-ac87-473d-965c-5fd28fb7ecdf'
         ],
         'viewers':5,
         'video_height':1080,
         'average_fps':60,
         'delay':0,
         'created_at':'2018-01-06T13:11:16Z',
         'is_playlist':False,
         'stream_type':'live',
         'preview':{  
            'small':'https://static-cdn.jtvnw.net/previews-ttv/live_user_rick92647-80x45.jpg',
            'medium':'https://static-cdn.jtvnw.net/previews-ttv/live_user_rick92647-320x180.jpg',
            'large':'https://static-cdn.jtvnw.net/previews-ttv/live_user_rick92647-640x360.jpg',
            'template':'https://static-cdn.jtvnw.net/previews-ttv/live_user_rick92647-{width}x{height}.jpg'
         },
         'channel':{  
            'mature':True,
            'status':'Raging at GTA 5! PS4 1080p 60fps  #TeamEmmmmsie #TUGFam ',
            'broadcaster_language':'en',
            'display_name':'Rick92647',
            'game':'Grand Theft Auto V',
            'language':'en',
            '_id':85887096,
            'name':'rick92647',
            'created_at':'2015-03-23T00:35:58.183119Z',
            'updated_at':'2018-01-06T13:32:22.960861Z',
            'partner':False,
            'logo':'https://static-cdn.jtvnw.net/jtv_user_pictures/rick92647-profile_image-f0673f8cc3a324fa-300x300.jpeg',
            'video_banner':'https://static-cdn.jtvnw.net/jtv_user_pictures/rick92647-channel_offline_image-f7946ef1eab9af8c-1920x1080.jpeg',
            'profile_banner':'https://static-cdn.jtvnw.net/jtv_user_pictures/rick92647-profile_banner-6aceeaef365613fe-480.png',
            'profile_banner_background_color':'#f5ecec',
            'url':'https://www.twitch.tv/rick92647',
            'views':37431,
            'followers':4939,
            'broadcaster_type':'',
            'description':'I am Rick, I am in Huntington Beach, California.(zip code 92647) I\'m very happily married, and we have 1 cat ( DJ) I will always try to support other streamers with "shout outs" and hosts when I am not streaming. My gaming schedule is usually daily "around" 10am (PST) till about 3pm.'
         }
      },
      {  
         '_id':27188424272,
         'game':'Grand Theft Auto V',
         'broadcast_platform':'ps4',
         'community_id':'21274159-9dad-43ed-b9d7-c19e90e7dbf2',
         'community_ids':[  
            '21274159-9dad-43ed-b9d7-c19e90e7dbf2',
            '49794479-9cbf-4849-9c36-d969d600ecf3',
            '5f242e8b-63c0-4c27-ba9e-144ce4bb2843'
         ],
         'viewers':5,
         'video_height':720,
         'average_fps':29.9850074963,
         'delay':0,
         'created_at':'2018-01-06T12:44:34Z',
         'is_playlist':False,
         'stream_type':'live',
         'preview':{  
            'small':'https://static-cdn.jtvnw.net/previews-ttv/live_user_i_justlikewill_i-80x45.jpg',
            'medium':'https://static-cdn.jtvnw.net/previews-ttv/live_user_i_justlikewill_i-320x180.jpg',
            'large':'https://static-cdn.jtvnw.net/previews-ttv/live_user_i_justlikewill_i-640x360.jpg',
            'template':'https://static-cdn.jtvnw.net/previews-ttv/live_user_i_justlikewill_i-{width}x{height}.jpg'
         },
         'channel':{  
            'mature':False,
            'status':"JUSTLIKEGANG | GTA 5 | I'm in a GTA Film ?  (PS4)",
            'broadcaster_language':'en',
            'display_name':'I_JUSTLIKEWILL_I',
            'game':'Grand Theft Auto V',
            'language':'en',
            '_id':176975821,
            'name':'i_justlikewill_i',
            'created_at':'2017-10-08T13:47:49.732282Z',
            'updated_at':'2018-01-06T13:31:29.660336Z',
            'partner':False,
            'logo':'https://static-cdn.jtvnw.net/jtv_user_pictures/603fcd26-521c-4584-b37d-2374ab9c6c28-profile_image-300x300.png',
            'video_banner':'https://static-cdn.jtvnw.net/jtv_user_pictures/2ef084ac62294791-channel_offline_image-1920x1080.png',
            'profile_banner':'https://static-cdn.jtvnw.net/jtv_user_pictures/9fef2192a2c20ac9-profile_banner-480.jpeg',
            'profile_banner_background_color':'',
            'url':'https://www.twitch.tv/i_justlikewill_i',
            'views':1174,
            'followers':92,
            'broadcaster_type':'',
            'description':'I am making my own Generation of people from difference backgrounds to come together as one and Spread the Positive vibes and remain focus to become bigger then the outer space '
         }
      },
      {  
         '_id':27187727568,
         'game':'Grand Theft Auto V',
         'broadcast_platform':'xbox',
         'community_id':'',
         'community_ids':[  

         ],
         'viewers':5,
         'video_height':368,
         'average_fps':30.0450676014,
         'delay':0,
         'created_at':'2018-01-06T10:34:07Z',
         'is_playlist':False,
         'stream_type':'live',
         'preview':{  
            'small':'https://static-cdn.jtvnw.net/previews-ttv/live_user_sktz89-80x45.jpg',
            'medium':'https://static-cdn.jtvnw.net/previews-ttv/live_user_sktz89-320x180.jpg',
            'large':'https://static-cdn.jtvnw.net/previews-ttv/live_user_sktz89-640x360.jpg',
            'template':'https://static-cdn.jtvnw.net/previews-ttv/live_user_sktz89-{width}x{height}.jpg'
         },
         'channel':{  
            'mature':True,
            'status':'[XB1] Hype! DarkMode sktz89Hi ❤ sktz89L',
            'broadcaster_language':'en',
            'display_name':'SktZ89',
            'game':'Grand Theft Auto V',
            'language':'en',
            '_id':77559797,
            'name':'sktz89',
            'created_at':'2014-12-20T09:12:40.374138Z',
            'updated_at':'2018-01-06T13:31:02.296855Z',
            'partner':False,
            'logo':'https://static-cdn.jtvnw.net/jtv_user_pictures/sktz89-profile_image-5dfed1a487f959fe-300x300.png',
            'video_banner':None,
            'profile_banner':'https://static-cdn.jtvnw.net/jtv_user_pictures/sktz89-profile_banner-2c1f4f83fdf6a019-480.jpeg',
            'profile_banner_background_color':'',
            'url':'https://www.twitch.tv/sktz89',
            'views':10600,
            'followers':747,
            'broadcaster_type':'',
            'description':"I'm a random streamer, streaming whatever I can and hopefully provide the most entertainment for everyone."
         }
      },
      {  
         '_id':27188748544,
         'game':'Grand Theft Auto V',
         'broadcast_platform':'live',
         'community_id':'',
         'community_ids':[  

         ],
         'viewers':4,
         'video_height':480,
         'average_fps':31.0938367574,
         'delay':0,
         'created_at':'2018-01-06T13:35:46Z',
         'is_playlist':False,
         'stream_type':'live',
         'preview':{  
            'small':'https://static-cdn.jtvnw.net/previews-ttv/live_user_iceekn-80x45.jpg',
            'medium':'https://static-cdn.jtvnw.net/previews-ttv/live_user_iceekn-320x180.jpg',
            'large':'https://static-cdn.jtvnw.net/previews-ttv/live_user_iceekn-640x360.jpg',
            'template':'https://static-cdn.jtvnw.net/previews-ttv/live_user_iceekn-{width}x{height}.jpg'
         },
         'channel':{  
            'mature':False,
            'status':'rules',
            'broadcaster_language':'en',
            'display_name':'iceekn',
            'game':'Grand Theft Auto V',
            'language':'en',
            '_id':153270130,
            'name':'iceekn',
            'created_at':'2017-04-13T17:43:44.659025Z',
            'updated_at':'2018-01-06T13:35:45.371211Z',
            'partner':False,
            'logo':'https://static-cdn.jtvnw.net/jtv_user_pictures/e765db36febf2add-profile_image-300x300.png',
            'video_banner':None,
            'profile_banner':None,
            'profile_banner_background_color':'',
            'url':'https://www.twitch.tv/iceekn',
            'views':79,
            'followers':2,
            'broadcaster_type':'',
            'description':''
         }
      },
      {  
         '_id':27188555840,
         'game':'Grand Theft Auto V',
         'broadcast_platform':'live',
         'community_id':'848d95be-90b3-44a5-b143-6e373754c382',
         'community_ids':[  
            '848d95be-90b3-44a5-b143-6e373754c382',
            '9719fa4b-f0ea-48aa-80d6-8801b5b39a4d',
            'dbec2d31-b2ad-49d0-9803-a752a0ef67fe'
         ],
         'viewers':4,
         'video_height':720,
         'average_fps':32.9138431752,
         'delay':0,
         'created_at':'2018-01-06T13:05:22Z',
         'is_playlist':False,
         'stream_type':'live',
         'preview':{  
            'small':'https://static-cdn.jtvnw.net/previews-ttv/live_user_ekim1000-80x45.jpg',
            'medium':'https://static-cdn.jtvnw.net/previews-ttv/live_user_ekim1000-320x180.jpg',
            'large':'https://static-cdn.jtvnw.net/previews-ttv/live_user_ekim1000-640x360.jpg',
            'template':'https://static-cdn.jtvnw.net/previews-ttv/live_user_ekim1000-{width}x{height}.jpg'
         },
         'channel':{  
            'mature':True,
            'status':'[FTF] [PC] PATH TO PARTNER.',
            'broadcaster_language':'en',
            'display_name':'Ekim1000',
            'game':'Grand Theft Auto V',
            'language':'en',
            '_id':49716262,
            'name':'ekim1000',
            'created_at':'2013-10-02T22:56:53.604388Z',
            'updated_at':'2018-01-06T13:31:56.944671Z',
            'partner':False,
            'logo':'https://static-cdn.jtvnw.net/jtv_user_pictures/4ebfef5d-546b-4e13-bc7e-532a4de24375-profile_image-300x300.png',
            'video_banner':'https://static-cdn.jtvnw.net/jtv_user_pictures/ekim1000-channel_offline_image-7b9f710f00225374-1920x1080.png',
            'profile_banner':'https://static-cdn.jtvnw.net/jtv_user_pictures/ekim1000-profile_banner-8cf27ed3a6d77f52-480.',
            'profile_banner_background_color':'#e8f0e9',
            'url':'https://www.twitch.tv/ekim1000',
            'views':64387,
            'followers':11906,
            'broadcaster_type':'',
            'description':' NOT A GAMER'
         }
      },
      {  
         '_id':27188385008,
         'game':'Grand Theft Auto V',
         'broadcast_platform':'live',
         'community_id':'4bef9cc9-c81d-4384-a62e-b16cf5e7a45e',
         'community_ids':[  
            '4bef9cc9-c81d-4384-a62e-b16cf5e7a45e',
            '848d95be-90b3-44a5-b143-6e373754c382',
            'ff1e77af-551d-4993-945c-f8ceaa2a2829'
         ],
         'viewers':4,
         'video_height':720,
         'average_fps':60,
         'delay':0,
         'created_at':'2018-01-06T12:37:56Z',
         'is_playlist':False,
         'stream_type':'live',
         'preview':{  
            'small':'https://static-cdn.jtvnw.net/previews-ttv/live_user_wekizz-80x45.jpg',
            'medium':'https://static-cdn.jtvnw.net/previews-ttv/live_user_wekizz-320x180.jpg',
            'large':'https://static-cdn.jtvnw.net/previews-ttv/live_user_wekizz-640x360.jpg',
            'template':'https://static-cdn.jtvnw.net/previews-ttv/live_user_wekizz-{width}x{height}.jpg'
         },
         'channel':{  
            'mature':False,
            'status':'I love Saturday when anything is possible so lets play #GTA5',
            'broadcaster_language':'en',
            'display_name':'WekizZ',
            'game':'Grand Theft Auto V',
            'language':'en',
            '_id':59159200,
            'name':'wekizz',
            'created_at':'2014-03-18T10:56:00.887852Z',
            'updated_at':'2018-01-06T13:32:33.942865Z',
            'partner':False,
            'logo':'https://static-cdn.jtvnw.net/jtv_user_pictures/6d56e553126b13ab-profile_image-300x300.jpeg',
            'video_banner':'https://static-cdn.jtvnw.net/jtv_user_pictures/7b6821b8084a305b-channel_offline_image-1920x1080.png',
            'profile_banner':'https://static-cdn.jtvnw.net/jtv_user_pictures/d269c140dd4d069a-profile_banner-480.jpeg',
            'profile_banner_background_color':'',
            'url':'https://www.twitch.tv/wekizz',
            'views':8990,
            'followers':557,
            'broadcaster_type':'',
            'description':"I will be stupid, I will be dumb, I will be funny because that's who I am. And I won't need someone that society wants me to be. Because that's just stupid. C. G. "
         }
      }
   ]
}
Reply
#2
The response is a string, you can use the json module to "load" the string as an object:

import json
json_str = # get the string from the api
json_obj = json.loads(json_str)
Reply
#3
(Jan-06-2018, 02:00 PM)mpd Wrote: The response is a string, you can use the json module to "load" the string as an object:
Bye the look of his data and response this is already done.
I guess he use a library or Requests to get the data,they will return data same as using json.loads()(return a Python dictionary).

@kappa123 what you get back is a Python dictionary with mixed in list.
This is common when get json back.

So if i just put you code in variable data data = { '_total':112, ....
Can use it to get data out.
>>> data['streams'][1]['channel']
{'_id': 49754222,
 'broadcaster_language': 'en',
 'broadcaster_type': '',
 'created_at': '2013-10-04T04:40:06.886355Z',
 'description': "Whats up all, I'm Hon Yolo and welcome to the community. We "
                'are a family here so come in and enjoy the fun!',
 'display_name': 'HonYolo',
 'followers': 8819,
 'game': 'Grand Theft Auto V',
 'language': 'en',
 'logo': 'https://static-cdn.jtvnw.net/jtv_user_pictures/347ae60c8343326d-profile_image-300x300.png',
 'mature': True,
 'name': 'honyolo',
 'partner': False,
 'profile_banner': 'https://static-cdn.jtvnw.net/jtv_user_pictures/honyolo-profile_banner-4e9846d200e548d4-480.png',
 'profile_banner_background_color': '#000000',
 'status': 'Honathan Yolo - 24H of Honathan - NoPixel GTA RP\n\n',
 'updated_at': '2018-01-06T13:35:18.174199Z',
 'url': 'https://www.twitch.tv/honyolo',
 'video_banner': 'https://static-cdn.jtvnw.net/jtv_user_pictures/018e3a2d1044db68-channel_offline_image-1920x1080.png',
 'views': 55054}

>>> data['streams'][1]['channel']['display_name']
'HonYolo'
So you need to search for hi and/or hey and/or hell in dictionary,
and then return display_name that say this.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  encrypt data in json file help jacksfrustration 1 293 Mar-28-2024, 05:16 PM
Last Post: deanhystad
  Read nested data from JSON - Getting an error marlonbown 5 1,441 Nov-23-2022, 03:51 PM
Last Post: snippsat
  Reading Data from JSON tpolim008 2 1,138 Sep-27-2022, 06:34 PM
Last Post: Larz60+
  Convert nested sample json api data into csv in python shantanu97 3 2,928 May-21-2022, 01:30 PM
Last Post: deanhystad
  Struggling with Juggling JSON Data SamWatt 7 1,990 May-09-2022, 02:49 AM
Last Post: snippsat
  json api data parsing elvis 0 952 Apr-21-2022, 11:59 PM
Last Post: elvis
  Capture json data JohnnyCoffee 0 1,232 Nov-18-2021, 03:19 PM
Last Post: JohnnyCoffee
  Serializing Python data Correctly (JSON) JgKSuperstar 4 2,207 Nov-04-2021, 07:31 PM
Last Post: JgKSuperstar
  How to save json data in a dataframe shantanu97 1 2,182 Apr-15-2021, 02:44 PM
Last Post: klllmmm
  Sort data from JSON file Dummy_in_programming 2 2,492 Jan-04-2021, 06:17 PM
Last Post: deanhystad

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020