Spaces:
Runtime error
Runtime error
Tab issue
Browse files
app.py
CHANGED
|
@@ -34,10 +34,8 @@ def extract_comments_from_video(video_id,youtube_api_key):
|
|
| 34 |
try:
|
| 35 |
youtube = googleapiclient.discovery.build(
|
| 36 |
api_service_name, api_version, developerKey = youtube_api_key)
|
| 37 |
-
|
| 38 |
found_comments = extract_all_comments(video_id,page_token='')
|
| 39 |
-
|
| 40 |
-
comments_df = pd.DataFrame(found_comments)
|
| 41 |
except:
|
| 42 |
print("An exception occurred")
|
| 43 |
return pd.DataFrame()
|
|
|
|
| 34 |
try:
|
| 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")
|
| 41 |
return pd.DataFrame()
|