Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
import pafy url = str(input("Youtube video URL :")) video = pafy.new(url) stream = video.streams stream[0].download()
在stream[0].download()中,添加带有所需文件名和扩展名的字符串参数,例如stream[0].download("example.mp4").
stream[0].download()
stream[0].download("example.mp4")
有关更多信息,请参阅文档。