如何将 youtube、vimeo 和 dailymotion 的搜索栏组合在一起

发布于 2024-11-07 04:13:55 字数 76 浏览 5 评论 0原文

如何将 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

老旧海报 2024-11-14 04:13:55

您需要查看他们的 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

和我恋爱吧 2024-11-14 04:13:55

首先了解所有 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.

嘿咻 2024-11-14 04:13:55

使用curl_multi并行进行多个搜索,然后你必须将所有结果合并到同一结构中......

Use curl_multi to do multiple search in parrallal, then you have to merge all results in same structure ....

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文