Over at SpokenWord.org we’re trying to figure out how to scrape YouTube pages (or pages with embedded YouTube players), then hack a video or ShockWave URL that we can include in the <enclosure> element of RSS feeds. We’ve been able to do this for programs in YouTube EDU such as this page, which we convert to this media-file URL. The latter URL can be played by standard Flash players, so we can include it in RSS feeds. But this only works for certain special cases such as YouTube EDU, not for mainstream YouTube pages. We don't want to convert the YouTube files to video, etc. We don't have rights/permission to do so.
问问题
1487 次
2 回答
1
每个视频都有自己的数据源,您只需要视频 id 就可以获取信息,包括可嵌入版本的 url(假设它能够嵌入)。
以下是每个网址的外观:
http://gdata.youtube.com/feeds/api/videos/VIDEO_ID
可能有一种更简单的方法可以使用 gdata api 来获得您想要的东西,也许如果您详细说明了您想要做什么?
比如视频的原始来源是哪里——你是在搜索,还是在寻找特定的 youtube 用户?api 应该能够适应任何这些场景。
于 2009-06-29T05:05:28.997 回答
0
通过youtube API简单地在 youtube 上找到相关视频会不会更容易?
于 2009-06-23T05:10:39.100 回答