김건

2차 개발 사항 중 오류 수정

...@@ -168,6 +168,7 @@ def main(): ...@@ -168,6 +168,7 @@ def main():
168 if Number == '0' : 168 if Number == '0' :
169 with io.open(output, 'w', encoding='utf8') as fp: 169 with io.open(output, 'w', encoding='utf8') as fp:
170 for comment in download_comments(youtube_id): 170 for comment in download_comments(youtube_id):
171 + comment_json = json.dumps(comment, ensure_ascii=False)
171 print(comment_json.decode('utf-8') if isinstance(comment_json, bytes) else comment_json, file=fp) 172 print(comment_json.decode('utf-8') if isinstance(comment_json, bytes) else comment_json, file=fp)
172 count += 1 173 count += 1
173 sys.stdout.write('Downloaded %d comment(s)\r' % count) 174 sys.stdout.write('Downloaded %d comment(s)\r' % count)
...@@ -179,6 +180,7 @@ def main(): ...@@ -179,6 +180,7 @@ def main():
179 i = 0 180 i = 0
180 for comment in download_comments(youtube_id): 181 for comment in download_comments(youtube_id):
181 result_List.append(comment) 182 result_List.append(comment)
183 + print(result_List[i])
182 count += 1 184 count += 1
183 i += 1 185 i += 1
184 if limit and count >= limit: 186 if limit and count >= limit:
......