Spaces:
Sleeping
Sleeping
httpdaniel
commited on
Commit
·
4a8bc74
1
Parent(s):
2e56c11
Adding proxy
Browse files
app.py
CHANGED
@@ -43,7 +43,9 @@ def get_video_metadata(video_id):
|
|
43 |
|
44 |
def get_transcript_content(video_id):
|
45 |
try:
|
46 |
-
transcript = YouTubeTranscriptApi.get_transcript(
|
|
|
|
|
47 |
transcript_content = parse_transcript(transcript)
|
48 |
return transcript_content
|
49 |
except Exception as e:
|
|
|
43 |
|
44 |
def get_transcript_content(video_id):
|
45 |
try:
|
46 |
+
transcript = YouTubeTranscriptApi.get_transcript(
|
47 |
+
video_id, proxies={"http": "50.172.75.114:80"}
|
48 |
+
)
|
49 |
transcript_content = parse_transcript(transcript)
|
50 |
return transcript_content
|
51 |
except Exception as e:
|