Giter Site home page Giter Site logo

heydownload's Introduction

HeyDownload

PHP 音视频解析
有待重写
解析脚本在 parser 下面
Demo
(PS:Demo 部署在国外服务器上,QQ 音乐无法使用)

已支持站点

  • 优酷
  • 好看视频
  • 网易云音乐
  • QQ 音乐

已知问题

优酷:客户端非法,201,貌似是调用频率太快,触发了防爬,建议十分钟之后再试

API

GET /get.php

参数

注意:下面的 bool 类型参数中非空表示 true,空表示 false

string url:待解析 URL
bool redirect:是否直接重定向到目标地址(可以直接放在 video/audio 标签的 src 中)(前提是对方没有设置 Referer 限制)。
array actions:动作,包括:defaultgetUrlgetCoverUrlgetLyric等,可以叠加多个,使用英文逗号分割,不区分大小写。可省略,默认为 default

返回

例如:/get.php?url=https://y.qq.com/n/ryqq/songDetail/004Jb2Ra312pz3

{
    "code": 0,
    "msg": "success",
    "data": {
        "type": "audio",
        "urls": [
            {
                "quality": "unknown",
                "url": "..."
            },
            {
                "quality": "unknown",
                "url": "..."
            }
        ],
        "title": "夏日未命名",
        "author": "小魂",
        "cover": "https://www.example.com/image.png"
    }
}

type:类型,目前只有 audiovideo
urls:所有的解析结果,可能包含不同的画质/音质
cover:封面 URL,若无/不支持则返回空字符串

参考项目/文章

heydownload's People

Contributors

xcantloadx avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.