From c1f86a4037bd139582fc06316531cceae6590aab Mon Sep 17 00:00:00 2001 From: Victor Jotham Ashioya Date: Wed, 23 Feb 2022 18:35:40 +0300 Subject: [PATCH] Create Video Resolutions.py --- Youtube/Video Resolutions.py | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 Youtube/Video Resolutions.py diff --git a/Youtube/Video Resolutions.py b/Youtube/Video Resolutions.py new file mode 100644 index 00000000..fac4808b --- /dev/null +++ b/Youtube/Video Resolutions.py @@ -0,0 +1,8 @@ +# Get video resolutions from Youtube +from pytube import YouTube +vid_url = "https://youtu.be/klZNvJArVSE" +vid_obj = YouTube(vid_url) +stream = vid_obj.streams.get_highest_resolution() +vid_obj.streams.all() + +