Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- c = Console()
- with c.status("[bold blue]Downloading video...", spinner='bounce') as status:
- with yt_dlp.YoutubeDL(ydl_opts) as ydl:
- info_dict = ydl.extract_info(link, download=True)
- downloaded_file_path = ydl.prepare_filename(info_dict)
- c.print(f"[bold green]Video [i u blue]{downloaded_file_path}[/i u blue] downloaded![/bold green]")
- #Output
- ⠄ Downloading video...[TikTok] Extracting URL: https://www.tiktok.com/@mmeowmmia/video/7202978058284846341?is_from_webapp=1&sender_device=pc
- [TikTok] 7202978058284846341: Downloading video feed
- ⠄ Downloading video...[info] 7202978058284846341: Downloading 1 format(s): bytevc1_720p_472959-2
- ⠂ Downloading video...[download] Destination: videos\test.mp4
- [download] 100% of 3.36MiB in 00:00:10 at 324.87KiB/s
- Video videos\test.mp4 downloaded!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement