爱意满满的作品展示区。
adjusted

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

  •  
  •   adjusted ·
    wangzuo · Jul 5, 2018 · 5630 views
    This topic created in 2880 days ago, the information mentioned may be changed or developed.

    接口地址为 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 replies    2018-07-08 19:01:24 +08:00
    kingda
        1
    kingda  
       Jul 6, 2018
    靠,这个视频吓我跳
    liujunsheng
        2
    liujunsheng  
       Jul 6, 2018
    靠,视频内容...
    wxchello
        3
    wxchello  
       Jul 7, 2018 via Android
    这是如何实现的啊?
    adjusted
        4
    adjusted  
    OP
       Jul 7, 2018
    @wxchello 类似爬虫
    abczise
        5
    abczise  
       Jul 7, 2018 via iPhone
    这视频…大半夜吓我一跳
    licoycn
        6
    licoycn  
       Jul 8, 2018
    这视频内容牛逼
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5545 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 45ms · UTC 08:47 · PVG 16:47 · LAX 01:47 · JFK 04:47
    ♥ Do have faith in what you're doing.