2
我試圖用python-oembed
庫得到reddit的(https://github.com/reddit/reddit/wiki/oEmbed)透過oEmbed評論:我如何獲得odit的json的reddit評論?
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.
錯誤。
我該如何檢索這些數據?