This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pytube import YouTube | |
from moviepy.editor import * | |
import openai | |
import textwrap | |
openai.api_key = "YOUR KEY" | |
def download_youtube_video(url, output_path): | |
yt = YouTube(url) | |
video = yt.streams.filter(file_extension='mp4').first() | |
video.download(output_path) |
OlderNewer