从雅虎屏幕视频播放器(不旧的Web播放器)获取IMG缩略图 [英] Get img thumbnails from Yahoo! Screen Video Player (not older webplayer)

查看:348
本文介绍了从雅虎屏幕视频播放器(不旧的Web播放器)获取IMG缩略图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图让雅虎!屏幕视频的图像拇指嵌入在我的网站一样,我们可以在其他网站上很容易做到(获取IMG从缩略图Vimeo的?,<一个href=\"http://stackoverflow.com/questions/2068344/how-to-get-thumbnail-of-youtube-video-link-using-youtube-api\">How获得使用YouTube API的YouTube视频链接的缩略图?等)。

I am trying to get yahoo! screen video's image thumbs to embed on my website like we can easily do in other websites ( Get img thumbnails from Vimeo?, How to get thumbnail of YouTube video link using YouTube API?, etc.).

曾经有一个sugestion:获取缩略图雅虎视频? (蟒蛇),但它似乎没有现在与新的雅虎屏幕工作。

There used to be a sugestion: Get thumbnail image for Yahoo video? (python) but it doesn't seem to work now with the new Yahoo! Screen.

在因特网和一些快速搜索使我对Y'自己的在线帮助Š:的http://help.yahoo.com/l/in/yahoo/video/using/using005.html;_ylt=Aj3rNfbhKBNyXODHGK5ONSo1qXtG

Some quick searching on the Internets led me to Y!'s very own online help: http://help.yahoo.com/l/in/yahoo/video/using/using005.html;_ylt=Aj3rNfbhKBNyXODHGK5ONSo1qXtG

据这,我所要做的就是的复制缩略图code中的共享选项卡下的。不幸的是,我似乎无法找到任何的缩略图code 的下的共享选项卡

According to which, all I have to do is Copy the thumbnail code under the Share tab. Unfortunately, I can't seem to find any thumbnail code under the Share tab.

我也没找到在 http://developer.yahoo.com/任何Y!屏幕API everything.html ,可以帮我这个......想法?

I also couldn't find any Y!Screen api on http://developer.yahoo.com/everything.html that could help me with this... ideas?

推荐答案

使用 YQL 跨域数据一起刮的的jQuery 是用于工作的解决方案。

Using YQL for cross domain data scraping along with jQuery is the solution that works.

有些是健全的,有些是hackish的,但是这拼抢是怎么一回事,我想。

Some of it is sound, some of it is hackish, but that's what scraping is all about I suppose.

此方法的基础不是我做的,但通过使用为Facebook教程标题
创建一个Facebook式的链接preVIEW使用jQuery和放大器; YQL 按乔斯林斯特雷顿写的。

The basis for this method was not done by me, but by using a tutorial for Facebook titled Create a Facebook-style Link Preview Using jQuery & YQL written by Jocelyn Stretton.

,你将有机会获得和理解如何检索以下内容:

Included in the modified JavaScript which serves as a starting point, you will have access and understand how to retrieve the following:

1 雅虎屏幕视频网页标题

2 雅虎屏幕缩略图URL链接

3。雅虎屏幕视频URL链接

4。刮其它标签内容

5。雅虎屏幕视频嵌入$ C $由雅虎屏播放器本身提供℃。

1. Yahoo! Screen Video Webpage Title
2. Yahoo! Screen Thumbnail URL Link
3. Yahoo! Screen Video URL Link
4. Scrape Other meta Tag Content
5. Yahoo Screen Video Embed Code provided by the Yahoo Screen Player itself.

DEMO中的jsfiddle!

修改:DEMO的jsfiddle不再是子域(区域)相关视频例如

jsFiddle DEMO is no longer subdomain (regionally) dependent for video example.

编辑2:对于那些希望看到在此基础​​上阿贾克斯()YQL 过程另一个教程,我已经做了两个jsFiddles对Pinterest的数据废弃。你可以看到,这么回答 这里 ,讨论详细的XPATH多很多。

EDIT 2: For those that would like to see another tutorial based on this .ajax() YQL process, I've made two jsFiddles for Pinterest Data Scraping. You can see that SO Answer here that discusses a lot more in detail for XPATH.

这篇关于从雅虎屏幕视频播放器(不旧的Web播放器)获取IMG缩略图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆