ok
Browse files- lib/all.js +0 -11
- package.json +0 -1
- plugins/alldownloader.js +0 -36
lib/all.js
CHANGED
@@ -21,7 +21,6 @@ import * as happykntl from 'happy-dl';
|
|
21 |
import * as lubacotscaper from "scraper-sosmed";
|
22 |
|
23 |
import { igdl } from 'ruhend-scraper';
|
24 |
-
import * as scraperanjing from '@saipulanuar/scraper';
|
25 |
import fs from "fs";
|
26 |
import * as uuid from 'uuid';
|
27 |
|
@@ -48,16 +47,6 @@ async function audioContent(url) {
|
|
48 |
}
|
49 |
}
|
50 |
|
51 |
-
async function CheckScaper() {
|
52 |
-
try {
|
53 |
-
console.log(scraperanjing);
|
54 |
-
return {"message": "ok"};
|
55 |
-
} catch (err) {
|
56 |
-
console.error(err);
|
57 |
-
return null;
|
58 |
-
}
|
59 |
-
}
|
60 |
-
|
61 |
async function InstagramDLV2(url) {
|
62 |
try {
|
63 |
const data = await igdlv2.instagramGetUrl(url);
|
|
|
21 |
import * as lubacotscaper from "scraper-sosmed";
|
22 |
|
23 |
import { igdl } from 'ruhend-scraper';
|
|
|
24 |
import fs from "fs";
|
25 |
import * as uuid from 'uuid';
|
26 |
|
|
|
47 |
}
|
48 |
}
|
49 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
50 |
async function InstagramDLV2(url) {
|
51 |
try {
|
52 |
const data = await igdlv2.instagramGetUrl(url);
|
package.json
CHANGED
@@ -20,7 +20,6 @@
|
|
20 |
"buffer": "*",
|
21 |
"another-fb-video-downloader": "*",
|
22 |
"scraper-sosmed": "*",
|
23 |
-
"@saipulanuar/scraper": "*",
|
24 |
"happy-dl": "*",
|
25 |
"mongoose": "*",
|
26 |
"multer": "*",
|
|
|
20 |
"buffer": "*",
|
21 |
"another-fb-video-downloader": "*",
|
22 |
"scraper-sosmed": "*",
|
|
|
23 |
"happy-dl": "*",
|
24 |
"mongoose": "*",
|
25 |
"multer": "*",
|
plugins/alldownloader.js
CHANGED
@@ -26,7 +26,6 @@ import {
|
|
26 |
SeachTiktok,
|
27 |
TelegramUseLog,
|
28 |
TwitterDownloaderV2,
|
29 |
-
CheckScaper,
|
30 |
} from '../lib/all.js';
|
31 |
|
32 |
import { authenticateApiKey, apiLimiter } from '../middleware/midware.js';
|
@@ -63,41 +62,6 @@ async function downloadMedia(media) {
|
|
63 |
}
|
64 |
}
|
65 |
|
66 |
-
/**
|
67 |
-
* @swagger
|
68 |
-
* /api/v1/dl/check:
|
69 |
-
* get:
|
70 |
-
* summary: Check Downloader
|
71 |
-
* tags: [ALL-Downloader]
|
72 |
-
* parameters:
|
73 |
-
* - in: query
|
74 |
-
* name: url
|
75 |
-
* required: false
|
76 |
-
* description: null
|
77 |
-
* schema:
|
78 |
-
* type: string
|
79 |
-
* responses:
|
80 |
-
* 200:
|
81 |
-
* description: Success
|
82 |
-
* 400:
|
83 |
-
* description: Bad Request (e.g., missing or invalid URL)
|
84 |
-
* 401:
|
85 |
-
* description: Unauthorized (e.g., missing or invalid API key)
|
86 |
-
* 500:
|
87 |
-
* description: Internal Server Error
|
88 |
-
*/
|
89 |
-
AllDlRoutes.get('/api/v1/dl/check', async (req, res) => {
|
90 |
-
try {
|
91 |
-
const q = req.query.url;
|
92 |
-
const results = await CheckScaper();
|
93 |
-
res.json({ message: results });
|
94 |
-
} catch (error) {
|
95 |
-
res.status(500).json({ error: error.message });
|
96 |
-
}
|
97 |
-
});
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
/**
|
102 |
* @swagger
|
103 |
* /api/v1/dl/twitter-v2:
|
|
|
26 |
SeachTiktok,
|
27 |
TelegramUseLog,
|
28 |
TwitterDownloaderV2,
|
|
|
29 |
} from '../lib/all.js';
|
30 |
|
31 |
import { authenticateApiKey, apiLimiter } from '../middleware/midware.js';
|
|
|
62 |
}
|
63 |
}
|
64 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
65 |
/**
|
66 |
* @swagger
|
67 |
* /api/v1/dl/twitter-v2:
|