【发布时间】:2016-06-02 08:01:14
【问题描述】:
我想使用 YouTube 数据 API 从视频中提取 cmets,为此我有一个来自 Google 开发者页面的 API 服务器密钥。我的代码在 python 中。我根据官方文档here写了如下语句来实例化一个服务对象。
youtube = build('youtube', 'v3', developerKey='my_key')
但是,我收到以下错误:
user@laptop:~/projects/MLproject$ python scrape.py
WARNING:root:No module named locked_file
Traceback (most recent call last):
File "build/bdist.linux-x86_64/egg/googleapiclient/discovery_cache/__init__.py", line 38, in autodetect
from . import file_cache
File "build/bdist.linux-x86_64/egg/googleapiclient/discovery_cache/file_cache.py", line 32, in <module>
ImportError: No module named locked_file
【问题讨论】:
标签: python google-api youtube-api youtube-data-api