Below is my code:
from pytube import YouTube
url = 'https://www.youtube.com/watch?v=r-uOLxNrNk8'
video = YouTube(url).streams.get_highest_resolution()
I am trying to get a youtube video using pytube, using which I am trying to extract the filesize.
The variable video is of type <class 'pytube.streams.Stream'>, and contains multiple attributes of the video. I want to understand, how to extract/read this data (filesize, resolution, etc).