Spaces:
Running
Running
Upload 2 files
Browse files- README.md +8 -69
- README2.md +69 -0
README.md
CHANGED
@@ -1,69 +1,8 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
```bash
|
10 |
-
git clone --depth 1 https://github.com/vcheckzen/LanzouCloudAPI.git
|
11 |
-
cd LanzouCloudAPI
|
12 |
-
pip3.7+ install -r requirements.txt
|
13 |
-
python3.7+ index.py
|
14 |
-
```
|
15 |
-
|
16 |
-
### Request APIs
|
17 |
-
|
18 |
-
```bash
|
19 |
-
➜ curl localhost:3000
|
20 |
-
{
|
21 |
-
"code": -1,
|
22 |
-
"examples": [
|
23 |
-
"http://localhost:3000/?url=https://lanzous.com/i4wk2oh&type=down",
|
24 |
-
"http://localhost:3000/?url=https://lanzous.com/i7tit9c&pwd=6svq&type=json"
|
25 |
-
],
|
26 |
-
"msg": "invalid link"
|
27 |
-
}
|
28 |
-
|
29 |
-
➜ curl 'http://localhost:3000/?url=https://lanzous.com/i4wk2oh&type=json'
|
30 |
-
{
|
31 |
-
"code": 200,
|
32 |
-
"data": {
|
33 |
-
"name": "nPlayer v1.6.1.5_190626 [Pro].apk",
|
34 |
-
"size": "31.5MB",
|
35 |
-
"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="
|
36 |
-
},
|
37 |
-
"msg": "success"
|
38 |
-
}
|
39 |
-
|
40 |
-
➜ curl -i 'http://localhost:3000/?url=https://lanzous.com/i7tit9c&pwd=6svq&type=down'
|
41 |
-
HTTP/1.0 302 FOUND
|
42 |
-
Content-Type: text/html; charset=utf-8
|
43 |
-
Content-Length: 947
|
44 |
-
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=
|
45 |
-
Server: Werkzeug/1.0.1 Python/3.9.2
|
46 |
-
Date: Fri, 02 Apr 2021 21:17:25 GMT
|
47 |
-
```
|
48 |
-
|
49 |
-
## Deploy
|
50 |
-
|
51 |
-
### Initialize the Service
|
52 |
-
|
53 |
-
```bash
|
54 |
-
# install python3.7+ manually before executing the following command
|
55 |
-
bash <(curl -sL https://github.com/vcheckzen/LanzouCloudAPI/raw/master/setup.sh)
|
56 |
-
|
57 |
-
# uninstall
|
58 |
-
bash <(curl -sL https://github.com/vcheckzen/LanzouCloudAPI/raw/master/setup.sh) uninstall
|
59 |
-
```
|
60 |
-
|
61 |
-
### Set up Reverse Proxy
|
62 |
-
|
63 |
-
```nginx
|
64 |
-
location /lanzous {
|
65 |
-
proxy_pass http://localhost:3000;
|
66 |
-
proxy_redirect off;
|
67 |
-
proxy_set_header Host $http_host;
|
68 |
-
}
|
69 |
-
```
|
|
|
1 |
+
title: lanzouApi
|
2 |
+
emoji: 😻
|
3 |
+
colorFrom: gray
|
4 |
+
colorTo: indigo
|
5 |
+
sdk: docker
|
6 |
+
pinned: false
|
7 |
+
license: apache-2.0
|
8 |
+
app_port: 7860
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
README2.md
ADDED
@@ -0,0 +1,69 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# LanzouCloudAPI
|
2 |
+
|
3 |
+
## Develop
|
4 |
+
|
5 |
+
### Start a Server
|
6 |
+
|
7 |
+
<!-- https://blog.csdn.net/COCO56/article/details/105959190 -->
|
8 |
+
|
9 |
+
```bash
|
10 |
+
git clone --depth 1 https://github.com/vcheckzen/LanzouCloudAPI.git
|
11 |
+
cd LanzouCloudAPI
|
12 |
+
pip3.7+ install -r requirements.txt
|
13 |
+
python3.7+ index.py
|
14 |
+
```
|
15 |
+
|
16 |
+
### Request APIs
|
17 |
+
|
18 |
+
```bash
|
19 |
+
➜ curl localhost:3000
|
20 |
+
{
|
21 |
+
"code": -1,
|
22 |
+
"examples": [
|
23 |
+
"http://localhost:3000/?url=https://lanzous.com/i4wk2oh&type=down",
|
24 |
+
"http://localhost:3000/?url=https://lanzous.com/i7tit9c&pwd=6svq&type=json"
|
25 |
+
],
|
26 |
+
"msg": "invalid link"
|
27 |
+
}
|
28 |
+
|
29 |
+
➜ curl 'http://localhost:3000/?url=https://lanzous.com/i4wk2oh&type=json'
|
30 |
+
{
|
31 |
+
"code": 200,
|
32 |
+
"data": {
|
33 |
+
"name": "nPlayer v1.6.1.5_190626 [Pro].apk",
|
34 |
+
"size": "31.5MB",
|
35 |
+
"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="
|
36 |
+
},
|
37 |
+
"msg": "success"
|
38 |
+
}
|
39 |
+
|
40 |
+
➜ curl -i 'http://localhost:3000/?url=https://lanzous.com/i7tit9c&pwd=6svq&type=down'
|
41 |
+
HTTP/1.0 302 FOUND
|
42 |
+
Content-Type: text/html; charset=utf-8
|
43 |
+
Content-Length: 947
|
44 |
+
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=
|
45 |
+
Server: Werkzeug/1.0.1 Python/3.9.2
|
46 |
+
Date: Fri, 02 Apr 2021 21:17:25 GMT
|
47 |
+
```
|
48 |
+
|
49 |
+
## Deploy
|
50 |
+
|
51 |
+
### Initialize the Service
|
52 |
+
|
53 |
+
```bash
|
54 |
+
# install python3.7+ manually before executing the following command
|
55 |
+
bash <(curl -sL https://github.com/vcheckzen/LanzouCloudAPI/raw/master/setup.sh)
|
56 |
+
|
57 |
+
# uninstall
|
58 |
+
bash <(curl -sL https://github.com/vcheckzen/LanzouCloudAPI/raw/master/setup.sh) uninstall
|
59 |
+
```
|
60 |
+
|
61 |
+
### Set up Reverse Proxy
|
62 |
+
|
63 |
+
```nginx
|
64 |
+
location /lanzous {
|
65 |
+
proxy_pass http://localhost:3000;
|
66 |
+
proxy_redirect off;
|
67 |
+
proxy_set_header Host $http_host;
|
68 |
+
}
|
69 |
+
```
|