分享一个自用的网页嵌入微博视频的接口

2018 年 7 月 5 日
 adjusted

接口地址为 https://swiftcarrot.com/weibo?status=$status&redirect=true

例如 https://swiftcarrot.com/weibo?status=Glv344wUR&redirect=true 就会返回视频地址

在网页中可以使用

<video controls src="https://swiftcarrot.com/weibo?status=Glv344wUR&redirect=true" /> 

如果微博地址是 https://weibo.com/1000/Glv344wUR, 那么最后这串就是接口里的 status 了。

https://i.imgur.com/VTI1Arg.png

5931 次点击
所在节点    分享创造
6 条回复
kingda
2018 年 7 月 6 日
靠,这个视频吓我跳
liujunsheng
2018 年 7 月 6 日
靠,视频内容...
wxchello
2018 年 7 月 7 日
这是如何实现的啊?
adjusted
2018 年 7 月 7 日
@wxchello 类似爬虫
abczise
2018 年 7 月 7 日
这视频…大半夜吓我一跳
licoycn
2018 年 7 月 8 日
这视频内容牛逼

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://v2ex.ih06.com/t/468465

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX