如何将 youtube、vimeo 和 dailymotion 的搜索栏组合在一起
如何将 youtube、vimeo 和 dailymotion 的搜索栏结合在一起,以便制作通用视频搜索引擎?
谢谢, 李
How do i combine youtube,vimeo and dailymotion's search bars together so that i can make a universal search engine for video?
Thanks,
Lee
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您需要查看他们的 API 文档并弄清楚如何提取所有数据。然后您需要自己的(可能非常复杂)排序算法来混合结果。
但第 1 步应该将所有数据拉入,查看相关链接;
http://vimeo.com/api/docs/methods/vimeo.videos.search
http://code.google.com/apis/youtube/2.0/developers_guide_protocol_category_keyword_browsing.html
http://www.dailymotion.com/doc/api/index.html
You would need to look at their API docs and figure out how to pull in all the data. Then you'd need your own (probably quite complex) sorting algorithm to mix the results up.
But step 1 should be pulling all the data in, check out the relevant links;
http://vimeo.com/api/docs/methods/vimeo.videos.search
http://code.google.com/apis/youtube/2.0/developers_guide_protocol_category_keyword_browsing.html
http://www.dailymotion.com/doc/api/index.html
首先了解所有 api,这意味着它是如何工作的。唯一的问题是页面导航。 YouTube 使用 token 和 vimeo 进行页面导航,dailymotion 使用数字。然后使用页面导航
域名/search-keywork/youtube-token/numbers。
First learn all the api that means how its work. There is only problem with page navigation. YouTube use page navigation by token and vimeo, dailymotion use numbers. Then use page navigation by
Domain/search-keywork/youtube-token/numbers.
使用curl_multi并行进行多个搜索,然后你必须将所有结果合并到同一结构中......
Use curl_multi to do multiple search in parrallal, then you have to merge all results in same structure ....