V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
爱意满满的作品展示区。
adjusted
V2EX  ›  分享创造

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

  •  
  •   adjusted ·
    wangzuo · 2018-07-05 19:55:53 +08:00 · 4551 次点击
    这是一个创建于 2093 天前的主题,其中的信息可能已经有所发展或是发生改变。

    接口地址为 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

    6 条回复    2018-07-08 19:01:24 +08:00
    kingda
        1
    kingda  
       2018-07-06 09:31:58 +08:00
    靠,这个视频吓我跳
    liujunsheng
        2
    liujunsheng  
       2018-07-06 15:04:04 +08:00
    靠,视频内容...
    wxchello
        3
    wxchello  
       2018-07-07 12:35:27 +08:00 via Android
    这是如何实现的啊?
    adjusted
        4
    adjusted  
    OP
       2018-07-07 21:17:26 +08:00
    @wxchello 类似爬虫
    abczise
        5
    abczise  
       2018-07-07 23:14:09 +08:00 via iPhone
    这视频…大半夜吓我一跳
    licoycn
        6
    licoycn  
       2018-07-08 19:01:24 +08:00
    这视频内容牛逼
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5382 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 40ms · UTC 07:33 · PVG 15:33 · LAX 00:33 · JFK 03:33
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.