I'm using the python library for Youtube API v3 and I'm trying to retrieve the name of the author of the last reply on a specific thread.
Right now I'm doing the following:
video_comments = get_comments(youtube,'thread_ID')
print video_comments[0]['snippet']['authorDisplayName']
The get_comments function is from their own example and I have an infinite loop that keeps looking this up. However every now and then I am getting this error:
IndexError: list index out of range
Any suggestions on what's causing this and how I can fix it?