-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscripts.py
More file actions
34 lines (30 loc) · 993 Bytes
/
scripts.py
File metadata and controls
34 lines (30 loc) · 993 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
from videos import *
import os
def descargarVideos():
url = input("Link:")
video = obtenerVideo(url)
print("Video obtenido")
path = obtenerPathDescarga(video)
print("Path obtenido")
descargar(path, video)
print("Video descargado")
def descargarPodcast():
url = input("Link:")
video = obtenerVideo(url)
print(f"Video obtenido: {url}")
path = obtenerPathPodcasts(video)
print(f"Path obtenido: {path}")
descargarParaPodcast(video, path)
print(f"descargando {video} en {path}")
print("Video descargado")
def transcribirVideos():
from transcripcion import transcribir
url = input("Link:")
video = obtenerVideo(url)
print(f"Video obtenido: {video.title}")
path = obtenerPathTranscripcion(video)
print(f"Path obtenido: {path}")
audio = descargarParaTranscripcion(video, path)
print("Video descargado")
print(f"transcribiendo {audio} en {path}")
transcribir(audio, path, video.length, video.title)