【发布时间】:2016-10-23 02:18:25
【问题描述】:
我正在尝试使用 python-oembed 库从 reddit(https://github.com/reddit/reddit/wiki/oEmbed) 获取 oembed 评论:
import oembed
consumer = oembed.OEmbedConsumer()
endpoint = oembed.OEmbedEndpoint('https://www.reddit.com/oembed',['https://www.reddit.com/r/*'])
consumer.addEndpoint(endpoint)
response = consumer.embed('https://www.reddit.com/r/Showerthoughts/comments/2safxv/we_should_start_keeping_giraffes_a_secret_from/cno7zic')
并得到oembed.OEmbedError: Missing required fields on OEmbed rich response. 错误。
如何检索这些数据?
【问题讨论】:
标签: python python-3.x oembed reddit