【发布时间】:2021-09-09 18:30:41
【问题描述】:
我为 YouTube 下载创建了这段代码,但它给了我这个错误:
import pytube
from pytube import YouTube
while True:
url = input("Enter the video link: ")
print("Uploading the video...")
print("Authot: " + url.author)
pytube.YouTube(url).streams.get_highest_resolution().download()
print("Video scaricato")
loop = input("\nDo you want to continue using the program ?: ")
if loop == "Yes" or loop == "yes":
continue
else:
break
AttributeError: 'str' 对象没有属性 'author'
【问题讨论】:
标签: python youtube attributeerror pytube