当我尝试使用以下代码获取youtube视频描述时:
from pytube import YouTube
video = YouTube("https://www.youtube.com/watch?v=N9bLO0XY3zs&ab_channel=CompanyEggs")
print (video.description())
我明白了
Traceback (most recent call last):
File "C:/Users/mmthe/PycharmProjects/pythonProject1/main.py", line 24, in <module>
print (video.description())
TypeError: 'str' object is not callable
我怎样才能解决这个问题
Pytube为您提供了一个对象,您只需要打印/访问该对象的属性
给予
相关问题 更多 >
编程相关推荐