ontent and ... and force basic data to be fetched too (basic data is required to obtain Stream objects) ... Selects the video-only stream with the highest resolution.Python Get Video Resolution code example
Example: how to use pafy
import pafy
url = 'your url here'
video = pafy.new(url)
audio = video.getbestaudio()
audio.download()