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

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

  •  
  •   adjusted ·
    wangzuo · 2018 年 7 月 5 日 · 5423 次点击
    这是一个创建于 2768 天前的主题,其中的信息可能已经有所发展或是发生改变。

    接口地址为 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 年 7 月 6 日
    靠,这个视频吓我跳
    liujunsheng
        2
    liujunsheng  
       2018 年 7 月 6 日
    靠,视频内容...
    wxchello
        3
    wxchello  
       2018 年 7 月 7 日 via Android
    这是如何实现的啊?
    adjusted
        4
    adjusted  
    OP
       2018 年 7 月 7 日
    @wxchello 类似爬虫
    abczise
        5
    abczise  
       2018 年 7 月 7 日 via iPhone
    这视频…大半夜吓我一跳
    licoycn
        6
    licoycn  
       2018 年 7 月 8 日
    这视频内容牛逼
    关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   2108 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 11:56 · PVG 19:56 · LAX 03:56 · JFK 06:56
    ♥ Do have faith in what you're doing.