Oct-22-2016, 06:36 PM
(Oct-22-2016, 05:58 PM)snippsat Wrote: Look at the source there is a list,as posted use [0] to get in.
['nodes'][0]['text']
Oh, i will try this:
try: while count <= len(data['entry_data']['PostPage'][0]['media']['comments']['nodes'][count]['text']): try: print(data['entry_data']['PostPage'][0]['media']['comments']['nodes'][count]['text']) count = count + 1 except: pass except: pass
Output:All comments **biggrin**
But, my question, If I do not put the try, I get an error, there may be a problem in the future?