【发布时间】:2019-05-30 21:47:48
【问题描述】:
如何通过他们的 API 获取 FT 文章?
在询问密钥后,我首先在他们的内容 API v2.1 中使用了a python API wrapper。所以我运行了以下内容:
from pyft import FT
ft = FT()
# the id can be pulled from the slug url of an FT.com story
content = ft.get_content("6f2ca3d6-86f5-11e4-982e-00144feabdc0")
print(content)
得到:
{'error': 'Access to this API has been disallowed'}
所以我关注了the official instructions,但得到了同样的错误:
【问题讨论】:
-
您是否阅读了文档中有关密钥文件的部分并创建了它?
-
@KlausD。是的,这是我做的第一件事。它位于
C:\Users\me\.ft.key
标签: python python-3.x api postman