HOIHOIHOII / EpsilonYouTubeScanner

Captures and stores metadata and timeseries for YouTube videos
0 stars 0 forks source link

Possible bad handling of empty list #5

Open HOIHOIHOII opened 5 years ago

HOIHOIHOII commented 5 years ago
Traceback (most recent call last):
  File "/home/ec2-user/project/EpsilonYouTubeScanner/harvest_data.py", line 687, in <module>
    update_channels(conn, cur)
  File "/home/ec2-user/project/EpsilonYouTubeScanner/harvest_data.py", line 633, in update_channels
    channel_meta, channel_timeseries = get_channel_data(channelIds)
  File "/home/ec2-user/project/EpsilonYouTubeScanner/harvest_data.py", line 356, in get_channel_data
    metadata = [extract_channels_meta(response) for response in responses]
  File "/home/ec2-user/project/EpsilonYouTubeScanner/harvest_data.py", line 313, in extract_channels_meta
    for channel in response["items"]:
KeyError: 'items'