获取雅虎视频的缩略图?(Python)
问题描述:
这个问题的意图与这个问题相似:
The question has a similar intent as this question:
但那个是用于vimeo的.
but that one was for vimeo.
那么,我有雅虎视频的网址,有什么办法可以使用该网址获取标准缩略图吗?
So, I have a url for the yahoo video, is there any way I could get the standard thumbnail using the url?
谢谢
答
嗯,雅虎支持 oembed.因此,您可以获取视频网址,例如,http://video.yahoo.com/watch/5202550/13742849 并通过像这样使用他们的 oembed 服务:
Well, Yahoo supports oembed. So, you can take the video url e.g., http://video.yahoo.com/watch/5202550/13742849 and pass it on to their oembed service like this:
http:///video.yahoo.com/services/oembed?url=http://video.yahoo.com/watch/5202550/13742849
对此的响应将包含缩略图网址.
The response to that will contain the thumbnail image url.