tushifire commited on
Commit
9b9ee37
·
1 Parent(s): e704b68
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -35,6 +35,7 @@ def extract_comments_from_video(video_id,youtube_api_key):
35
  youtube = googleapiclient.discovery.build(
36
  api_service_name, api_version, developerKey = youtube_api_key)
37
  found_comments = extract_all_comments(video_id,page_token='')
 
38
  comments_df = pd.DataFrame(found_comments)
39
  except:
40
  print("An exception occurred")
 
35
  youtube = googleapiclient.discovery.build(
36
  api_service_name, api_version, developerKey = youtube_api_key)
37
  found_comments = extract_all_comments(video_id,page_token='')
38
+ print(len(found_comments))
39
  comments_df = pd.DataFrame(found_comments)
40
  except:
41
  print("An exception occurred")