Skip to content
This repository has been archived by the owner on May 25, 2022. It is now read-only.

Create Video Resolutions.py #579

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions Youtube/Video Resolutions.py
Original file line number Diff line number Diff line change
@@ -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()