ilhamdev commited on
Commit
f54ae14
·
verified ·
1 Parent(s): 77e293f

Update index.js

Browse files
Files changed (1) hide show
  1. index.js +1 -4
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': '*/*',