質問編集履歴

2

エラー内容の修正

2022/04/08 00:58

投稿

Teviz
Teviz

スコア3

test CHANGED
File without changes
test CHANGED
@@ -58,6 +58,9 @@
58
58
  ```
59
59
 
60
60
  エラー内容です
61
+
62
+ 〜〜この部分に14個取得できています〜〜
63
+
61
64
  Traceback (most recent call last):
62
65
  File "/Users/〜〜〜.py", line 23, in <module>
63
66
  print(item_1['snippet']['channelTitle'],item_2['statistics']['subscriberCount'])

1

エラー内容追加しました

2022/04/08 00:54

投稿

Teviz
Teviz

スコア3

test CHANGED
File without changes
test CHANGED
@@ -45,7 +45,7 @@
45
45
 
46
46
  for item_2 in search_response['items']:
47
47
 
48
-
48
+ #↓エラーが出ている部分です
49
49
  print(item_1['snippet']['channelTitle'],item_2['statistics']['subscriberCount'])
50
50
 
51
51
 
@@ -56,3 +56,12 @@
56
56
 
57
57
 
58
58
  ```
59
+
60
+ エラー内容です
61
+ Traceback (most recent call last):
62
+ File "/Users/〜〜〜.py", line 23, in <module>
63
+ print(item_1['snippet']['channelTitle'],item_2['statistics']['subscriberCount'])
64
+ KeyError: 'subscriberCount'
65
+
66
+
67
+