Coder Social home page Coder Social logo

vcheckzen / lanzoucloudapi Goto Github PK

View Code? Open in Web Editor NEW
68.0 4.0 14.0 62 KB

[ 蓝奏云直链解析 ] Redirect to Download Server When Given LanZouCloud Sharing Link

License: GNU General Public License v3.0

Python 74.51% Shell 25.49%
lanzou lanzoucloud sharinglink downloader api

lanzoucloudapi's Introduction

LanzouCloudAPI

Develop

Start a Server

git clone --depth 1 https://github.com/vcheckzen/LanzouCloudAPI.git
cd LanzouCloudAPI
pip3.7+ install -r requirements.txt
python3.7+ index.py

Request APIs

➜  curl localhost:3000
{
  "code": -1,
  "examples": [
    "http://localhost:3000/?url=https://lanzous.com/i4wk2oh&type=down",
    "http://localhost:3000/?url=https://lanzous.com/i7tit9c&pwd=6svq&type=json"
  ],
  "msg": "invalid link"
}

➜  curl 'http://localhost:3000/?url=https://lanzous.com/i4wk2oh&type=json'
{
  "code": 200,
  "data": {
    "name": "nPlayer v1.6.1.5_190626 [Pro].apk",
    "size": "31.5MB",
    "url": "https://developer81.baidupan.com/040305bb/2019/07/09/7cc366020ff1530865f7e0c70d95a56e.apk?st=7xswzKkJd_WdJRAeYoFMiw&e=1617400107&b=BjoJWVQ4VzNWelZlAyEDJwIhWTRXeFdnUi8MMFZ_aVmFSXwo7VG1ZbAVmAmZXMQElUlwNAQJxUTgIBg0uUTcDcQY_a&fi=9965077&pid=120-229-85-16&up="
  },
  "msg": "success"
}

➜  curl -i 'http://localhost:3000/?url=https://lanzous.com/i7tit9c&pwd=6svq&type=down'
HTTP/1.0 302 FOUND
Content-Type: text/html; charset=utf-8
Content-Length: 947
Location: https://developer82.baidupan.com/040305bb/2019/12/03/96a3256ec57b632c34573353faaaea0a.apk?st=mHnA5SXouIMzjISkFVz-Yg&e=1617400245&b=BLFZzQK3Ur8E9gLSUeQOpATnCGdRfgo8U19YZgEoBDUCfgw0U7QDkgLiBLoC9VTWALJbnFDDA_bBUqgGcAOBR2gTeWRsCZ1I2BCQCIFF4DkcEPggwUbUKglO7WLMBtgS_bArQMtVPWA_bACzATmArRUxgDlW_bFQ8gOFVOEBuQCMUX0EN1kpAmk_c&fi=14862322&pid=120-229-85-16&up=
Server: Werkzeug/1.0.1 Python/3.9.2
Date: Fri, 02 Apr 2021 21:17:25 GMT

Deploy

Initialize the Service

# install python3.7+ manually before executing the following command
bash <(curl -sL https://github.com/vcheckzen/LanzouCloudAPI/raw/master/setup.sh)

# uninstall
bash <(curl -sL https://github.com/vcheckzen/LanzouCloudAPI/raw/master/setup.sh) uninstall

Set up Reverse Proxy

location /lanzous {
    proxy_pass http://localhost:3000;
    proxy_redirect off;
    proxy_set_header Host $http_host;
}

lanzoucloudapi's People

Contributors

vcheckzen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

lanzoucloudapi's Issues

YoduPlayer 配置生成器不能生成歌单全部歌曲

最近发现YoduPlayer配置生成器生成歌单的配置一次只能生成十首歌,无法生成歌单中的所有歌曲,我自己在腾讯云函数上面部利用此源码署了api也是这样,请问有没有解决办法?
谢谢。

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.