Giter VIP home page Giter VIP logo

lanzoucloudapi's Introduction

LanzouCloudAPI

Develop

Start a Server

git clone --depth 1 https://github.com/vcheckzen/LanzouCloudAPI.git
cd LanzouCloudAPI
pip3.6+ install -r requirements.txt
python3.6+ 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.6+ 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

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.