Advertisement
FanaticExplorer

rich_issue

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