{"library":"pafy","title":"pafy","description":"pafy is a Python library to retrieve YouTube content and metadata, such as video titles, descriptions, thumbnails, and download URLs. Current version is 0.5.5, with no set release cadence; the project appears to be in maintenance mode with infrequent updates.","language":"python","status":"maintenance","last_verified":"Fri May 01","install":{"commands":["pip install pafy","pip install pafy youtube-dl"],"cli":null},"imports":["import pafy","from pafy import new"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import pafy\n\nurl = 'https://www.youtube.com/watch?v=dQw4w9WgXcQ'\nvideo = pafy.new(url)\nprint(video.title)\nprint(video.viewcount)\nprint(video.duration)\nstream = video.getbest()\nprint(stream.url)","lang":"python","description":"Fetch metadata from a YouTube video using pafy and print title, views, duration, and best stream URL.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}