Spaces:
Sleeping
Sleeping
=
commited on
Commit
·
a53bedb
1
Parent(s):
19bf710
try
Browse files- lib/Transcriber.jl +9 -12
lib/Transcriber.jl
CHANGED
@@ -10,21 +10,18 @@ function __init__()
|
|
10 |
from youtube_transcript_api import YouTubeTranscriptApi
|
11 |
from youtube_transcript_api.proxies import WebshareProxyConfig
|
12 |
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
proxy_password=websharepass,
|
22 |
-
)
|
23 |
-
)
|
24 |
|
25 |
|
26 |
def get_transcript(video_id):
|
27 |
-
return
|
28 |
"""
|
29 |
end
|
30 |
|
|
|
10 |
from youtube_transcript_api import YouTubeTranscriptApi
|
11 |
from youtube_transcript_api.proxies import WebshareProxyConfig
|
12 |
|
13 |
+
#webshareuser = os.environ.get("WEBSHAREUSER") # Changed from webuser to webshareuser
|
14 |
+
#websharepass = os.environ.get("WEBSHAREPASS")
|
15 |
+
#ytt_api = YouTubeTranscriptApi(
|
16 |
+
# proxy_config=WebshareProxyConfig(
|
17 |
+
# proxy_username=webshareuser,
|
18 |
+
# proxy_password=websharepass,
|
19 |
+
# )
|
20 |
+
#)
|
|
|
|
|
|
|
21 |
|
22 |
|
23 |
def get_transcript(video_id):
|
24 |
+
return YouTubeTranscriptApi.get_transcript(video_id)
|
25 |
"""
|
26 |
end
|
27 |
|