Update index.js
Browse files
index.js
CHANGED
|
@@ -8,10 +8,6 @@ const axios = require('axios');
|
|
| 8 |
const FormData = require('form-data')
|
| 9 |
const cheerio = require('cheerio')
|
| 10 |
let fetch;
|
| 11 |
-
let cloudscraper
|
| 12 |
-
(async () => {
|
| 13 |
-
cloudscraper = await import('cloudscraper');
|
| 14 |
-
})();
|
| 15 |
|
| 16 |
(async () => {
|
| 17 |
fetch = (await import('node-fetch')).default;
|
|
@@ -32,6 +28,7 @@ const post = async (url, form, headers = {}) => {
|
|
| 32 |
|
| 33 |
//INDOWN
|
| 34 |
async function igdl(query) {
|
|
|
|
| 35 |
url_dl = [];
|
| 36 |
let headers = {
|
| 37 |
'Accept': '*/*',
|
|
|
|
| 8 |
const FormData = require('form-data')
|
| 9 |
const cheerio = require('cheerio')
|
| 10 |
let fetch;
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
|
| 12 |
(async () => {
|
| 13 |
fetch = (await import('node-fetch')).default;
|
|
|
|
| 28 |
|
| 29 |
//INDOWN
|
| 30 |
async function igdl(query) {
|
| 31 |
+
let cloudscraper = await import('cloudscraper');
|
| 32 |
url_dl = [];
|
| 33 |
let headers = {
|
| 34 |
'Accept': '*/*',
|