Oct-22-2016, 05:58 PM
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?Oct-23-2016, 10:21 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']
Snippsat, i want to thank you very much for your help. Can I collaborate with the forum answering questions?.
Thanks again!.

Oct-24-2016, 12:23 AM
Quote:Can I collaborate with the forum answering questions?
Sure, that is what the forum is for
