kys-api 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +412 -0
- package/index.js +59 -0
- package/lib/function.js +899 -0
- package/package.json +31 -0
package/README.md
ADDED
@@ -0,0 +1,412 @@
|
|
1
|
+
<div align="center">
|
2
|
+
<img src="https://i.pinimg.com/originals/c4/c6/fb/c4c6fb0469f227a4d297c68059dc950d.jpg" alt="Hexa" width="170" />
|
3
|
+
|
4
|
+
## KAYSA-API
|
5
|
+
|
6
|
+
</div>
|
7
|
+
|
8
|
+
<p align="center">
|
9
|
+
<a href="##"><img title="hexa-api" src="https://img.shields.io/static/v1?label=package&message=hxz-api&color=red"></a>
|
10
|
+
</p>
|
11
|
+
<p align="center">
|
12
|
+
<a href="https://github.com/Hexagonz"><img title="Author" src="https://img.shields.io/badge/Author-Hexagonz-red.svg?style=for-the-badge&logo=github" /></a>
|
13
|
+
</p>
|
14
|
+
<p align="center">
|
15
|
+
<a href="#"><img title="mengapi" src="https://img.shields.io/static/v1?label=FREE&message=hxz-api&color=pink"></a>
|
16
|
+
</p>
|
17
|
+
|
18
|
+
## ```INSTALL And UNINSTALL```
|
19
|
+
> npm install kys-api
|
20
|
+
>
|
21
|
+
> npm uninstall kys-api
|
22
|
+
|
23
|
+
|
24
|
+
## ```Otakudesu```
|
25
|
+
```
|
26
|
+
const kay = require('kys-api');
|
27
|
+
const judul = 'kaifuku'
|
28
|
+
|
29
|
+
kay.otakudesu(judul)
|
30
|
+
.then(result => {
|
31
|
+
console.log(result)
|
32
|
+
});
|
33
|
+
```
|
34
|
+
## ```Covid```
|
35
|
+
```
|
36
|
+
const hx = require('kys-api');
|
37
|
+
|
38
|
+
kay.covid()
|
39
|
+
.then(result => {
|
40
|
+
console.log(result)
|
41
|
+
});
|
42
|
+
```
|
43
|
+
|
44
|
+
## ```Ongoing```
|
45
|
+
```
|
46
|
+
const kay = require('kys-api');
|
47
|
+
|
48
|
+
kay.ongoing()
|
49
|
+
.then(result => {
|
50
|
+
console.log(result)
|
51
|
+
});
|
52
|
+
```
|
53
|
+
|
54
|
+
## ```Komiku```
|
55
|
+
```
|
56
|
+
const kay = require('kys-api');
|
57
|
+
const judul = 'kanojo mo kanojo'
|
58
|
+
|
59
|
+
kay.komiku(judul)
|
60
|
+
.then(result => {
|
61
|
+
console.log(result)
|
62
|
+
});
|
63
|
+
```
|
64
|
+
|
65
|
+
## ```Tebak Gambar```
|
66
|
+
```
|
67
|
+
const kay = require('kys-api');
|
68
|
+
|
69
|
+
kay.tebakgambar()
|
70
|
+
.then(result => {
|
71
|
+
console.log(result)
|
72
|
+
});
|
73
|
+
```
|
74
|
+
|
75
|
+
## ```Surah```
|
76
|
+
```
|
77
|
+
const kay = require('kys-api');
|
78
|
+
const no = '1'
|
79
|
+
|
80
|
+
kay.surah(no)
|
81
|
+
.then(result => {
|
82
|
+
console.log(result)
|
83
|
+
});
|
84
|
+
```
|
85
|
+
|
86
|
+
## ```Sholat```
|
87
|
+
```
|
88
|
+
const kay = require('kys-api');
|
89
|
+
const no = '1'
|
90
|
+
|
91
|
+
kay.sholat(no)
|
92
|
+
.then(result => {
|
93
|
+
console.log(result)
|
94
|
+
});
|
95
|
+
```
|
96
|
+
|
97
|
+
## ```Lirik```
|
98
|
+
```
|
99
|
+
const kay = require('kys-api');
|
100
|
+
const judul = 'black catcher'
|
101
|
+
|
102
|
+
kay.lirik(judul)
|
103
|
+
.then(result => {
|
104
|
+
console.log(result)
|
105
|
+
});
|
106
|
+
```
|
107
|
+
|
108
|
+
## ```Chara```
|
109
|
+
```
|
110
|
+
const kay = require('kys-api');
|
111
|
+
const name = 'nino'
|
112
|
+
|
113
|
+
kay.chara(name)
|
114
|
+
.then(result => {
|
115
|
+
console.log(result)
|
116
|
+
});
|
117
|
+
```
|
118
|
+
|
119
|
+
## ```Wattpad```
|
120
|
+
```
|
121
|
+
const kay = require('kys-api');
|
122
|
+
const judul = 'love'
|
123
|
+
|
124
|
+
kay.wattpad(judul)
|
125
|
+
.then(result => {
|
126
|
+
console.log(result)
|
127
|
+
});
|
128
|
+
```
|
129
|
+
|
130
|
+
## ```Play Store```
|
131
|
+
```
|
132
|
+
const kay = require('kys-api');
|
133
|
+
const judul = 'game 8 bit'
|
134
|
+
|
135
|
+
kay.playstore(judul)
|
136
|
+
.then(result => {
|
137
|
+
console.log(result)
|
138
|
+
});
|
139
|
+
```
|
140
|
+
|
141
|
+
## ```Link Wa```
|
142
|
+
```
|
143
|
+
const kay = require('kys-api');
|
144
|
+
const judul = 'Editod bekentod'
|
145
|
+
|
146
|
+
kay.linkwa(judul)
|
147
|
+
.then(result => {
|
148
|
+
console.log(result)
|
149
|
+
});
|
150
|
+
```
|
151
|
+
|
152
|
+
## ```Pinterest```
|
153
|
+
```
|
154
|
+
const kay = require('kys-api');
|
155
|
+
const judul = 'nakano nino'
|
156
|
+
|
157
|
+
kay.pinterest(judul)
|
158
|
+
.then(result => {
|
159
|
+
console.log(result)
|
160
|
+
});
|
161
|
+
```
|
162
|
+
|
163
|
+
## ```IG Downloader```
|
164
|
+
```
|
165
|
+
const kay = require('kys-api');
|
166
|
+
const link = 'https://www.instagram.com/p/CQpUpGvAhWq/?utm_source=ig_web_copy_link'
|
167
|
+
|
168
|
+
kay.igdl(link)
|
169
|
+
.then(result => {
|
170
|
+
console.log(result)
|
171
|
+
});
|
172
|
+
```
|
173
|
+
|
174
|
+
|
175
|
+
## ```IG Story```
|
176
|
+
```
|
177
|
+
const kay = require('kys-api');
|
178
|
+
const username = 'yabegitulahaha'
|
179
|
+
|
180
|
+
kay.igstory(username)
|
181
|
+
.then(result => {
|
182
|
+
console.log(result)
|
183
|
+
});
|
184
|
+
```
|
185
|
+
## ```IG Stalk```
|
186
|
+
```
|
187
|
+
const kay = require('kys-api');
|
188
|
+
const username = 'yabegitulahaha'
|
189
|
+
|
190
|
+
kay.igstalk(username)
|
191
|
+
.then(result => {
|
192
|
+
console.log(result)
|
193
|
+
});
|
194
|
+
```
|
195
|
+
|
196
|
+
## ```Twitter Downloader```
|
197
|
+
```
|
198
|
+
const kay = require('kys-api');
|
199
|
+
const link = 'https://twitter.com/PassengersMovie/status/821025484150423557'
|
200
|
+
|
201
|
+
kay.twitter(link)
|
202
|
+
.then(result => {
|
203
|
+
console.log(result)
|
204
|
+
});
|
205
|
+
```
|
206
|
+
|
207
|
+
## ```Facebook Downloader```
|
208
|
+
```
|
209
|
+
const kay = require('kys-api');
|
210
|
+
const link = 'https://fb.watch/6vQOvEENLW/'
|
211
|
+
|
212
|
+
kay.fbdown(link)
|
213
|
+
.then(result => {
|
214
|
+
console.log(result)
|
215
|
+
});
|
216
|
+
```
|
217
|
+
|
218
|
+
## ```Youtube Downloader```
|
219
|
+
```
|
220
|
+
const kay = require('kys-api');
|
221
|
+
const link = 'https://youtu.be/5C8yvJUVB-0'
|
222
|
+
|
223
|
+
kay.youtube(link)
|
224
|
+
.then(result => {
|
225
|
+
console.log(result)
|
226
|
+
});
|
227
|
+
```
|
228
|
+
|
229
|
+
## ```Tiktok Downloader```
|
230
|
+
```
|
231
|
+
const kay = require('kys-api');
|
232
|
+
const link = 'https://www.tiktok.com/@daniajaa7/video/6980287183517125890?sender_device=pc&sender_web_id=6978811994732938753&is_from_webapp=v1&is_copy_url=0'
|
233
|
+
|
234
|
+
kay.ttdownloader(link)
|
235
|
+
.then(result => {
|
236
|
+
console.log(result)
|
237
|
+
});
|
238
|
+
```
|
239
|
+
|
240
|
+
## ```Sticker Search```
|
241
|
+
```
|
242
|
+
const kay = require('kys-api');
|
243
|
+
const query = ''patrick"
|
244
|
+
|
245
|
+
kay.stickersearch(query)
|
246
|
+
.then(result => {
|
247
|
+
console.log(result)
|
248
|
+
});
|
249
|
+
```
|
250
|
+
|
251
|
+
## ```Film```
|
252
|
+
```
|
253
|
+
const kay = require('kys-api');
|
254
|
+
const query = ''love"
|
255
|
+
|
256
|
+
kay.film(query)
|
257
|
+
.then(result => {
|
258
|
+
console.log(result)
|
259
|
+
});
|
260
|
+
```
|
261
|
+
|
262
|
+
## ```Anime```
|
263
|
+
```
|
264
|
+
const kay = require('kys-api');
|
265
|
+
const query = ''naruto"
|
266
|
+
|
267
|
+
kay.anime(query)
|
268
|
+
.then(result => {
|
269
|
+
console.log(result)
|
270
|
+
});
|
271
|
+
```
|
272
|
+
|
273
|
+
## ```Manga```
|
274
|
+
```
|
275
|
+
const kay = require('kys-api');
|
276
|
+
const query = ''naruto"
|
277
|
+
|
278
|
+
kay.manga(query)
|
279
|
+
.then(result => {
|
280
|
+
console.log(result)
|
281
|
+
});
|
282
|
+
```
|
283
|
+
|
284
|
+
## ```Jadwal Bola```
|
285
|
+
```
|
286
|
+
const kay = require('kys-api');
|
287
|
+
|
288
|
+
kay.jadwalbola()
|
289
|
+
.then(result => {
|
290
|
+
console.log(result)
|
291
|
+
});
|
292
|
+
```
|
293
|
+
|
294
|
+
## ```Anime```
|
295
|
+
```
|
296
|
+
const kay = require('kys-api');
|
297
|
+
|
298
|
+
kay.jadwaltv()
|
299
|
+
.then(result => {
|
300
|
+
console.log(result)
|
301
|
+
});
|
302
|
+
```
|
303
|
+
# ```LIST JADWAL SHOLAT```
|
304
|
+
```
|
305
|
+
Jakarta = 1
|
306
|
+
Ambon = 39
|
307
|
+
Balikpapan = 42
|
308
|
+
Banda Aceh = 17
|
309
|
+
Bandar Lampung = 22
|
310
|
+
Bandung = 7
|
311
|
+
Banjar = 44
|
312
|
+
Banjarbaru = 46
|
313
|
+
Banjarmasin = 32
|
314
|
+
Banyuwangi = 48
|
315
|
+
Batam = 8
|
316
|
+
Batu = 50
|
317
|
+
Bau-bau = 52
|
318
|
+
Bekasi = 54
|
319
|
+
Bengkulu = 21
|
320
|
+
Bima = 56
|
321
|
+
Binjai = 58
|
322
|
+
Bitung = 60
|
323
|
+
Blitar = 62
|
324
|
+
Bogor = 64
|
325
|
+
Bontang = 66
|
326
|
+
Bukittinggi = 68
|
327
|
+
Cilegon = 70
|
328
|
+
Cimahi = 72
|
329
|
+
Cirebon = 74
|
330
|
+
Denpasar = 6
|
331
|
+
Depok = 76
|
332
|
+
Dumai = 78
|
333
|
+
Gorontalo = 38
|
334
|
+
Gunungsitoli = 80
|
335
|
+
Jambi = 19
|
336
|
+
Jayapura = 9
|
337
|
+
Jember = 82
|
338
|
+
Kediri = 84
|
339
|
+
Kendari = 36
|
340
|
+
Kotamobagu = 86
|
341
|
+
Kupang = 28
|
342
|
+
Langsa = 88
|
343
|
+
Lhokseumawe = 90
|
344
|
+
Lubuklinggau = 92
|
345
|
+
Madiun = 94
|
346
|
+
Magelang = 98
|
347
|
+
Makassar = 13
|
348
|
+
Malang = 96
|
349
|
+
Mamuju = 37
|
350
|
+
Manado = 15
|
351
|
+
Manokwari = 41
|
352
|
+
Mataram = 29
|
353
|
+
Medan = 14
|
354
|
+
Mojokerto = 100
|
355
|
+
Padang = 16
|
356
|
+
Padangpanjang = 102
|
357
|
+
Padangsidempuan = 104
|
358
|
+
Pagar Alam = 106
|
359
|
+
Palangkaraya = 31
|
360
|
+
Palembang = 20
|
361
|
+
Palopo = 108
|
362
|
+
Palu = 35
|
363
|
+
Pangkal Pinang = 23
|
364
|
+
Pangkalpinang = 110
|
365
|
+
Parepare = 112
|
366
|
+
Pariaman = 114
|
367
|
+
Pasuruan = 116
|
368
|
+
Payakumbuh = 118
|
369
|
+
Pekalongan = 120
|
370
|
+
Pekanbaru = 18
|
371
|
+
Pematangsiantar = 122
|
372
|
+
Pontianak = 30
|
373
|
+
Prabumulih = 124
|
374
|
+
Probolinggo = 126
|
375
|
+
Sabang = 128
|
376
|
+
Salatiga = 130
|
377
|
+
Samarinda = 33
|
378
|
+
Sawahlunto = 132
|
379
|
+
Semarang = 26
|
380
|
+
Serang = 27
|
381
|
+
Sibolga = 134
|
382
|
+
Singkawang = 136
|
383
|
+
Sofifi = 138
|
384
|
+
Solo = 40
|
385
|
+
Solok = 140
|
386
|
+
Sorong = 142
|
387
|
+
Subulussalam = 144
|
388
|
+
Sukabumi = 146
|
389
|
+
Sungai Penuh = 148
|
390
|
+
Surabaya = 4
|
391
|
+
Surakarta = 150
|
392
|
+
Tangerang = 152
|
393
|
+
Tangerang Selatan = 154
|
394
|
+
Tanjung Pinang = 24
|
395
|
+
Tanjung Selor = 34
|
396
|
+
Tanjungbalai = 156
|
397
|
+
Tarakan = 158
|
398
|
+
Tasikmalaya = 160
|
399
|
+
Tebing Tinggi = 162
|
400
|
+
Tegal = 164
|
401
|
+
Ternate = 166
|
402
|
+
Tidore Kepulauan = 168
|
403
|
+
Tomohon = 170
|
404
|
+
Tual = 172
|
405
|
+
Yogyakarta = 25
|
406
|
+
```
|
407
|
+
|
408
|
+
# Thanks To
|
409
|
+
* [`MRHRTZ`](https://github.com/MRHRTZ)
|
410
|
+
* [`HEXA`](https://github.com/Hexagonz)
|
411
|
+
|
412
|
+
|
package/index.js
ADDED
@@ -0,0 +1,59 @@
|
|
1
|
+
const {
|
2
|
+
otakudesu,
|
3
|
+
covid,
|
4
|
+
ongoing,
|
5
|
+
komiku,
|
6
|
+
tebakgambar,
|
7
|
+
surah,
|
8
|
+
sholat,
|
9
|
+
lirik,
|
10
|
+
chara,
|
11
|
+
wattpad,
|
12
|
+
playstore,
|
13
|
+
linkwa,
|
14
|
+
pinterest,
|
15
|
+
igdl,
|
16
|
+
igstory,
|
17
|
+
igstalk,
|
18
|
+
twitter,
|
19
|
+
fbdown,
|
20
|
+
youtube,
|
21
|
+
ttdownloader,
|
22
|
+
stickerseacrh,
|
23
|
+
film,
|
24
|
+
anime,
|
25
|
+
manga,
|
26
|
+
jadwalbola,
|
27
|
+
jadwaltv
|
28
|
+
} = require('./lib/function')
|
29
|
+
|
30
|
+
module.exports.otakudesu = otakudesu
|
31
|
+
module.exports.covid = covid
|
32
|
+
module.exports.ongoing = ongoing
|
33
|
+
module.exports.komiku = komiku
|
34
|
+
module.exports.tebakgambar = tebakgambar
|
35
|
+
module.exports.surah = surah
|
36
|
+
module.exports.sholat = sholat
|
37
|
+
module.exports.lirik = lirik
|
38
|
+
module.exports.chara = chara
|
39
|
+
module.exports.wattpad = wattpad
|
40
|
+
module.exports.playstore = playstore
|
41
|
+
module.exports.linkwa = linkwa
|
42
|
+
module.exports.pinterest = pinterest
|
43
|
+
module.exports.igdl = igdl
|
44
|
+
module.exports.igstory = igstory
|
45
|
+
module.exports.igstalk = igstalk
|
46
|
+
module.exports.twitter = twitter
|
47
|
+
module.exports.fbdown = fbdown
|
48
|
+
module.exports.youtube = youtube
|
49
|
+
module.exports.ttdownloader = ttdownloader
|
50
|
+
module.exports.stickersearch = stickersearch
|
51
|
+
module.exports.film = film
|
52
|
+
module.exports.anime = anime
|
53
|
+
module.exports.manga = manga
|
54
|
+
module.exports.jadwalbola = jadwalbola
|
55
|
+
module.exports.jadwaltv = jadwaltv
|
56
|
+
|
57
|
+
|
58
|
+
|
59
|
+
|
package/lib/function.js
ADDED
@@ -0,0 +1,899 @@
|
|
1
|
+
const cheerio = require("cheerio")
|
2
|
+
const axios = require("axios")
|
3
|
+
const qs = require("qs")
|
4
|
+
const request = require('request')
|
5
|
+
const author = Kaysa
|
6
|
+
|
7
|
+
//ADD BY KAYSA
|
8
|
+
function stickersearch(query){
|
9
|
+
return new Promise((resolve, reject) => {
|
10
|
+
axios.get(`https://getstickerpack.com/stickers?query=${query}`)
|
11
|
+
.then(({
|
12
|
+
data
|
13
|
+
}) => {
|
14
|
+
const $ = cheerio.load(data)
|
15
|
+
const source = [];
|
16
|
+
const link = [];
|
17
|
+
$('#stickerPacks > div > div:nth-child(3) > div > a').each(function(a, b) {
|
18
|
+
source.push($(b).attr('href'))
|
19
|
+
})
|
20
|
+
axios.get(source[Math.floor(Math.random() * source.length)])
|
21
|
+
.then(({
|
22
|
+
data
|
23
|
+
}) => {
|
24
|
+
const $$ = cheerio.load(data)
|
25
|
+
$$('#stickerPack > div > div.row > div > img').each(function(c, d) {
|
26
|
+
link.push($$(d).attr('src').replace(/&d=200x200/g,''))
|
27
|
+
})
|
28
|
+
result = {
|
29
|
+
status: 200,
|
30
|
+
author: author,
|
31
|
+
title: $$('#intro > div > div > h1').text(),
|
32
|
+
sticker_url: link
|
33
|
+
}
|
34
|
+
resolve(result)
|
35
|
+
})
|
36
|
+
}).catch(reject)
|
37
|
+
})
|
38
|
+
}
|
39
|
+
function film(query){
|
40
|
+
return new Promise((resolve, reject) => {
|
41
|
+
axios.get(`http://167.99.31.48/?s=${query}`)
|
42
|
+
.then(({
|
43
|
+
data
|
44
|
+
}) => {
|
45
|
+
const $ = cheerio.load(data)
|
46
|
+
const hasil = [];
|
47
|
+
$('#content > div > div.los').each(function (a, b) {
|
48
|
+
$(b).find('article').each(function (c, d) {
|
49
|
+
const judul = $(d).find('div > a > div.addinfox > header > h2').text()
|
50
|
+
const quality = $(d).find('div > a > div > div > span').text()
|
51
|
+
const type = $(d).find('div > a > div.addinfox > div > i.type').text()
|
52
|
+
const upload = $(d).find('div > a > div.addinfox > div > span').text()
|
53
|
+
const link = $(d).find('div > a').attr('href');
|
54
|
+
const thumb = $(d).find('div > a > div > img').attr('src');
|
55
|
+
const result = {
|
56
|
+
status: 200,
|
57
|
+
author: author,
|
58
|
+
judul: judul,
|
59
|
+
quality: quality,
|
60
|
+
type: type,
|
61
|
+
upload: upload,
|
62
|
+
link: link,
|
63
|
+
thumb: thumb,
|
64
|
+
};
|
65
|
+
hasil.push(result);
|
66
|
+
});
|
67
|
+
});
|
68
|
+
resolve(hasil)
|
69
|
+
})
|
70
|
+
.catch(reject)
|
71
|
+
})
|
72
|
+
}
|
73
|
+
function anime(query){
|
74
|
+
return new Promise((resolve, reject) => {
|
75
|
+
axios.get(`https://www.anime-planet.com/anime/all?name=${query}`)
|
76
|
+
.then(({
|
77
|
+
data
|
78
|
+
}) => {
|
79
|
+
const hasil = []
|
80
|
+
const $ = cheerio.load(data)
|
81
|
+
$('#siteContainer > ul.cardDeck.cardGrid > li ').each(function (a, b) {
|
82
|
+
result = {
|
83
|
+
status: 200,
|
84
|
+
author: author,
|
85
|
+
judul: $(b).find('> a > h3').text(),
|
86
|
+
link: 'https://www.anime-planet.com' + $(b).find('> a').attr('href'),
|
87
|
+
thumbnail: 'https://www.anime-planet.com' + $(b).find('> a > div.crop > img').attr('src')
|
88
|
+
};
|
89
|
+
hasil.push(result);
|
90
|
+
});
|
91
|
+
resolve(hasil)
|
92
|
+
})
|
93
|
+
.catch(reject)
|
94
|
+
})
|
95
|
+
}
|
96
|
+
function manga(query){
|
97
|
+
return new Promise((resolve, reject) => {
|
98
|
+
axios.get(`https://www.anime-planet.com/manga/all?name=${query}`)
|
99
|
+
.then(({
|
100
|
+
data
|
101
|
+
}) => {
|
102
|
+
const hasil = []
|
103
|
+
const $ = cheerio.load(data)
|
104
|
+
$('#siteContainer > ul.cardDeck.cardGrid > li ').each(function (a, b) {
|
105
|
+
result = {
|
106
|
+
status: 200,
|
107
|
+
author: author,
|
108
|
+
judul: $(b).find('> a > h3').text(),
|
109
|
+
link: 'https://www.anime-planet.com' + $(b).find('> a').attr('href'),
|
110
|
+
thumbnail: 'https://www.anime-planet.com' + $(b).find('> a > div.crop > img').attr('src')
|
111
|
+
};
|
112
|
+
hasil.push(result);
|
113
|
+
});
|
114
|
+
resolve(hasil)
|
115
|
+
})
|
116
|
+
.catch(reject)
|
117
|
+
})
|
118
|
+
}
|
119
|
+
function jadwalbola(){
|
120
|
+
return new Promise((resolve, reject) => {
|
121
|
+
axios.get('https://m.bola.net/jadwal_televisi/')
|
122
|
+
.then(({
|
123
|
+
data
|
124
|
+
}) => {
|
125
|
+
const $ = cheerio.load(data)
|
126
|
+
const hasil = [];
|
127
|
+
$('#main_mid_headline_sub_topic').each(function(a, b) {
|
128
|
+
result = {
|
129
|
+
status: 200,
|
130
|
+
author: author,
|
131
|
+
jadwal: $(b).find(' > div.main_mid_headline_topic > div > a').text(),
|
132
|
+
tanggal: $(b).find(' > div.main_mid_headline_topic_grouped_time_list').text().split('\n')[1].split(' ')[1],
|
133
|
+
jam: $(b).find(' > div.main_mid_headline_topic > span').text(),
|
134
|
+
url: $(b).find(' > div.main_mid_headline_topic > div > a').attr('href'),
|
135
|
+
thumb: $(b).find(' > div.main_mid_headline_topic > img').attr('src')
|
136
|
+
}
|
137
|
+
hasil.push(result)
|
138
|
+
})
|
139
|
+
resolve(hasil)
|
140
|
+
})
|
141
|
+
.catch(reject)
|
142
|
+
})
|
143
|
+
}
|
144
|
+
function jadwaltv(){
|
145
|
+
return new Promise((resolve, reject) => {
|
146
|
+
axios.get('http://www.dokitv.com/jadwal-acara-tv')
|
147
|
+
.then(({
|
148
|
+
data
|
149
|
+
}) => {
|
150
|
+
const $ = cheerio.load(data)
|
151
|
+
const hasil = [];
|
152
|
+
$('#tabeljadwaltv > tbody > tr ').each(function(a, b) {
|
153
|
+
result = {
|
154
|
+
status: 200,
|
155
|
+
author: author,
|
156
|
+
acara: $(b).find('> td:nth-child(2)').text(),
|
157
|
+
channel: $(b).find('> td > a').text(),
|
158
|
+
jam: $(b).find('> td.jfx').text(),
|
159
|
+
source: $(b).find('> td > a').attr('href')
|
160
|
+
}
|
161
|
+
hasil.push(result)
|
162
|
+
})
|
163
|
+
resolve(hasil)
|
164
|
+
})
|
165
|
+
.catch(reject)
|
166
|
+
})
|
167
|
+
}
|
168
|
+
|
169
|
+
//================================//
|
170
|
+
|
171
|
+
|
172
|
+
function otakudesu(judul){
|
173
|
+
return new Promise(async(resolve, reject) => {
|
174
|
+
axios.get('https://otakudesu.moe/?s=' + judul + '&post_type=anime')
|
175
|
+
.then(({ data }) => {
|
176
|
+
const $ = cheerio.load(data)
|
177
|
+
const result = {};
|
178
|
+
let limk = $('#venkonten > div > div.venser > div > div > ul > li:nth-child(1) > h2 > a').attr('href')
|
179
|
+
axios.get(limk).then(({ data }) => {
|
180
|
+
const $$ = cheerio.load(data)
|
181
|
+
result.message = 'By Kaysa'
|
182
|
+
result.img = $$('#venkonten > div.venser > div.fotoanime').find('img').attr('src')
|
183
|
+
$$('#venkonten > div.venser > div.fotoanime > div.infozin > div').each(function(a, b) {
|
184
|
+
result.judul = $$(b).find('p:nth-child(1)').text().replace('Judul: ','')
|
185
|
+
result.jepang = $$(b).find('p:nth-child(2)').text().replace('Japanese: ','')
|
186
|
+
result.rate = $$(b).find('p:nth-child(3)').text().replace('Skor: ','')
|
187
|
+
result.produser = $$(b).find('p:nth-child(4)').text().replace('Produser: ','')
|
188
|
+
result.tipe = $$(b).find('p:nth-child(5)').text().replace('Tipe: ','')
|
189
|
+
result.status = $$(b).find('p:nth-child(6)').text().replace('Status: ','')
|
190
|
+
result.episode = $$(b).find('p:nth-child(7)').text().replace('Total Episode: ','')
|
191
|
+
result.durasi = $$(b).find('p:nth-child(8)').text().replace('Durasi: ','')
|
192
|
+
result.rilis = $$(b).find('p:nth-child(9)').text().replace('Tanggal Rilis: ','')
|
193
|
+
result.studio = $$(b).find('p:nth-child(10)').text().replace('Studio: ','')
|
194
|
+
result.genre = $$(b).find('p:nth-child(11)').text().replace('Genre: ','')
|
195
|
+
result.desc = $$('#venkonten > div.venser > div.fotoanime > div.sinopc').text().replace('.','\n') + $$(b).find('div.sinopc > p:nth-child(2)').text()
|
196
|
+
result.batch = $$('#venkonten > div.venser > div:nth-child(10) > ul > li > span:nth-child(1) > a').attr('href')
|
197
|
+
})
|
198
|
+
const lim = $$('#venkonten > div.venser > div:nth-child(10) > ul > li > span:nth-child(1) > a').attr('href')
|
199
|
+
axios.get(lim).then(({ data }) => {
|
200
|
+
const $$$ = cheerio.load(data)
|
201
|
+
result.batchSD = $$$('#venkonten > div:nth-child(6) > ul > li:nth-child(1) > a:nth-child(3)').attr('href')
|
202
|
+
result.batchHD = $$$('#venkonten > div:nth-child(6) > ul > li:nth-child(3) > a:nth-child(3)').attr('href')
|
203
|
+
resolve(result)
|
204
|
+
})
|
205
|
+
})
|
206
|
+
})
|
207
|
+
.catch(reject)
|
208
|
+
})
|
209
|
+
}
|
210
|
+
|
211
|
+
function covid(){
|
212
|
+
return new Promise(async(resolve, reject) => {
|
213
|
+
axios.get('https://covid19.go.id/')
|
214
|
+
.then(({ data }) => {
|
215
|
+
const $ = cheerio.load(data)
|
216
|
+
const hasil = [];
|
217
|
+
$('#case > div > div > div > div > div:nth-child(2)').each(function(a,b) {
|
218
|
+
const pindo = $(b).find('div:nth-child(3) > strong').text()
|
219
|
+
const mindo = $(b).find('div:nth-child(5) > strong').text()
|
220
|
+
const sindo = $(b).find('div:nth-child(4) > strong').text()
|
221
|
+
const upindo = $(b).find('div.pt-4.text-color-black.text-1').text().trim()
|
222
|
+
$('#case > div > div > div > div > div:nth-child(1)').each(function(c,d) {
|
223
|
+
const neg = $(d).find('div:nth-child(3) > strong').text()
|
224
|
+
const pglo = $(d).find('div:nth-child(4) > strong').text()
|
225
|
+
const nglo = $(d).find('div:nth-child(5) > strong').text()
|
226
|
+
const up = $(d).find('div.pt-4.text-color-grey.text-1').text().trim()
|
227
|
+
const result = {
|
228
|
+
message: 'By Kaysa',
|
229
|
+
indo : {
|
230
|
+
positif_indo: pindo,
|
231
|
+
meninggal_indo: mindo,
|
232
|
+
sembuh_indo: sindo,
|
233
|
+
update_indo: upindo.split(':')[1]
|
234
|
+
},
|
235
|
+
global: {
|
236
|
+
negara: neg,
|
237
|
+
positif: pglo,
|
238
|
+
meninggal: nglo,
|
239
|
+
update: up.split(':')[1].split('\n')[0]
|
240
|
+
|
241
|
+
}
|
242
|
+
}
|
243
|
+
hasil.push(result)
|
244
|
+
})
|
245
|
+
})
|
246
|
+
resolve(hasil)
|
247
|
+
})
|
248
|
+
.catch(reject)
|
249
|
+
})
|
250
|
+
}
|
251
|
+
|
252
|
+
function ongoing(){
|
253
|
+
return new Promise((reject,resolve) => {
|
254
|
+
axios.get('https://otakudesu.moe/ongoing-anime/').then(({ data}) => {
|
255
|
+
const $ = cheerio.load(data)
|
256
|
+
const result = [];
|
257
|
+
const img = [];
|
258
|
+
const epz = [];
|
259
|
+
const ne = [];
|
260
|
+
const th = [];
|
261
|
+
const ep = [];
|
262
|
+
const nm =[];
|
263
|
+
$('div.detpost').each(function(a,b) {
|
264
|
+
img.push($(b).find('img').attr('src'))
|
265
|
+
nm.push($(b).find('h2').text())
|
266
|
+
th.push($(b).find('a').attr('href'))
|
267
|
+
})
|
268
|
+
$('div.epztipe').each(function(d,c) {
|
269
|
+
epz.push($(c).text())
|
270
|
+
})
|
271
|
+
$('div.newnime').each(function(f,g) {
|
272
|
+
ne.push($(g).text())
|
273
|
+
})
|
274
|
+
$('div.epz').each(function(m,n){
|
275
|
+
ep.push($(n).text())
|
276
|
+
})
|
277
|
+
for( let i = 0; i < img.length; i++){
|
278
|
+
result.push({
|
279
|
+
nama: nm[i],
|
280
|
+
image: img[i],
|
281
|
+
episode: ep[i],
|
282
|
+
setiap: epz[i],
|
283
|
+
rilis: ne[i],
|
284
|
+
link: th[i]
|
285
|
+
})
|
286
|
+
}
|
287
|
+
resolve(result)
|
288
|
+
})
|
289
|
+
.catch(reject)
|
290
|
+
})
|
291
|
+
}
|
292
|
+
|
293
|
+
function komiku(judul) {
|
294
|
+
return new Promise(async(resolve,reject) => {
|
295
|
+
axios.get('https://data3.komiku.id/cari/?post_type=manga&s=' + encodeURIComponent(judul))
|
296
|
+
.then(({ data }) => {
|
297
|
+
const $ = cheerio.load(data)
|
298
|
+
const img = [];
|
299
|
+
const or = [];
|
300
|
+
const ind = [];
|
301
|
+
const up = [];
|
302
|
+
const des = [];
|
303
|
+
const li = [];
|
304
|
+
const ch = [];
|
305
|
+
const ch1 = [];
|
306
|
+
$('div.daftar').each(function (a,b) {
|
307
|
+
img.push($(b).find('img').attr('data-src'))
|
308
|
+
$('div.kan').each(function(c,d) {
|
309
|
+
or.push($(d).find('h3').text().trim())
|
310
|
+
ind.push($(d).find('span.judul2').text())
|
311
|
+
li.push('https://komiku.id' + $(d).find('a').attr('href'))
|
312
|
+
up.push($(d).find('p').text().trim().split('. ')[0])
|
313
|
+
des.push($(d).find('p').text().trim().split('. ')[1])
|
314
|
+
ch1.push($(d).find('div:nth-child(5) > a').attr('title'))
|
315
|
+
$('div.new1').each(function(e,f) {
|
316
|
+
ch.push($(f).find('a').attr('title'))
|
317
|
+
})
|
318
|
+
})
|
319
|
+
})
|
320
|
+
for (let i = 0 ; i < img.length; i++) {
|
321
|
+
resolve({
|
322
|
+
image: img[i],
|
323
|
+
title: or[i],
|
324
|
+
indo: ind[i],
|
325
|
+
update: up[i],
|
326
|
+
desc: des[i],
|
327
|
+
chapter_awal: ch[i],
|
328
|
+
chapter_akhir: ch1[i],
|
329
|
+
link: li[i]
|
330
|
+
})
|
331
|
+
}
|
332
|
+
})
|
333
|
+
.catch(reject)
|
334
|
+
})
|
335
|
+
}
|
336
|
+
|
337
|
+
function tebakgambar() {
|
338
|
+
return new Promise(async(resolve, reject) => {
|
339
|
+
axios.get('https://jawabantebakgambar.net/all-answers/')
|
340
|
+
.then(({ data }) => {
|
341
|
+
const $ = cheerio.load(data)
|
342
|
+
const result = [];
|
343
|
+
let random = Math.floor(Math.random() * 2836) + 2;
|
344
|
+
let link2 = 'https://jawabantebakgambar.net'
|
345
|
+
$(`#images > li:nth-child(${random}) > a`).each(function(a, b) {
|
346
|
+
const img = link2 + $(b).find('img').attr('data-src')
|
347
|
+
const jwb = $(b).find('img').attr('alt')
|
348
|
+
result.push({
|
349
|
+
message: 'By Kaysa',
|
350
|
+
image: img,
|
351
|
+
jawaban: jwb
|
352
|
+
})
|
353
|
+
|
354
|
+
resolve(result)
|
355
|
+
})
|
356
|
+
})
|
357
|
+
.catch(reject)
|
358
|
+
})
|
359
|
+
}
|
360
|
+
|
361
|
+
function surah(no){
|
362
|
+
return new Promise(async(resolve, reject) => {
|
363
|
+
axios.get('https://kalam.sindonews.com/surah/' + no)
|
364
|
+
.then(({ data }) => {
|
365
|
+
const $ = cheerio.load(data)
|
366
|
+
const result = [];
|
367
|
+
const ar = [];
|
368
|
+
const id = [];
|
369
|
+
const lt = [];
|
370
|
+
const au = [];
|
371
|
+
$('div.breadcrumb-new > ul > li:nth-child(5)').each(function(c,d) {
|
372
|
+
result.audio = $(d).find('a').attr('href').replace('surah','audioframe')
|
373
|
+
})
|
374
|
+
$('div.ayat-arab').each(function(a, b) {
|
375
|
+
ar.push($(b).text())
|
376
|
+
})
|
377
|
+
$('li > div.ayat-text').each(function(e, f) {
|
378
|
+
id.push($(f).text().replace(',','').trim()) })
|
379
|
+
$('div.ayat-latin').each(function(g, h) {
|
380
|
+
lt.push($(h).text().trim()) })
|
381
|
+
for(let i = 0; i < ar.length ; i++){
|
382
|
+
result.push({
|
383
|
+
arab: ar[i],
|
384
|
+
indo: id[i],
|
385
|
+
latin: lt[i],
|
386
|
+
})
|
387
|
+
}
|
388
|
+
resolve(result)
|
389
|
+
})
|
390
|
+
.catch(reject)
|
391
|
+
})
|
392
|
+
}
|
393
|
+
function sholat(NO) {
|
394
|
+
return new Promise(async(resolve, reject) =>{
|
395
|
+
axios.get('https://kalam.sindonews.com/jadwalsholat/' + NOMOR).then(({ data }) => {
|
396
|
+
const $ = cheerio.load(data)
|
397
|
+
const result = {};
|
398
|
+
$('div.imsakiyah-content').each(function(a, b) {
|
399
|
+
result.Tanggal = $(b).find('tr:nth-child(1) > td:nth-child(1)').text()
|
400
|
+
result.imsak = $(b).find('tr:nth-child(1) > td:nth-child(2)').text()
|
401
|
+
result.subuh = $(b).find('tr:nth-child(1) > td:nth-child(3)').text()
|
402
|
+
result.zuhur = $(b).find('tr:nth-child(1) > td:nth-child(4)').text()
|
403
|
+
result.ashar = $(b).find('tr:nth-child(1) > td:nth-child(5)').text()
|
404
|
+
result.maghrib = $(b).find('tr:nth-child(1) > td:nth-child(6)').text()
|
405
|
+
result.isya = $(b).find('tr:nth-child(1) > td:nth-child(7)').text()
|
406
|
+
})
|
407
|
+
resolve(result)
|
408
|
+
})
|
409
|
+
.catch(reject)
|
410
|
+
})
|
411
|
+
}
|
412
|
+
|
413
|
+
function lirik(judul){
|
414
|
+
return new Promise(async(resolve, reject) => {
|
415
|
+
axios.get('https://www.musixmatch.com/search/' + judul)
|
416
|
+
.then(async({ data }) => {
|
417
|
+
const $ = cheerio.load(data)
|
418
|
+
const hasil = {};
|
419
|
+
let limk = 'https://www.musixmatch.com'
|
420
|
+
const link = limk + $('div.media-card-body > div > h2').find('a').attr('href')
|
421
|
+
await axios.get(link)
|
422
|
+
.then(({ data }) => {
|
423
|
+
const $$ = cheerio.load(data)
|
424
|
+
hasil.thumb = 'https:' + $$('div.col-sm-1.col-md-2.col-ml-3.col-lg-3.static-position > div > div > div').find('img').attr('src')
|
425
|
+
$$('div.col-sm-10.col-md-8.col-ml-6.col-lg-6 > div.mxm-lyrics').each(function(a,b) {
|
426
|
+
hasil.lirik = $$(b).find('span > p > span').text() +'\n' + $$(b).find('span > div > p > span').text()
|
427
|
+
})
|
428
|
+
})
|
429
|
+
resolve(hasil)
|
430
|
+
})
|
431
|
+
.catch(reject)
|
432
|
+
})
|
433
|
+
}
|
434
|
+
|
435
|
+
function chara(query) {
|
436
|
+
return new Promise((resolve, reject) => {
|
437
|
+
axios.get('https://www.wallpaperflare.com/search?wallpaper='+ query,{
|
438
|
+
headers: {
|
439
|
+
"user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36",
|
440
|
+
"cookie": "_ga=GA1.2.863074474.1624987429; _gid=GA1.2.857771494.1624987429; __gads=ID=84d12a6ae82d0a63-2242b0820eca0058:T=1624987427:RT=1624987427:S=ALNI_MaJYaH0-_xRbokdDkQ0B49vSYgYcQ"
|
441
|
+
}
|
442
|
+
})
|
443
|
+
.then(({ data }) => {
|
444
|
+
const $ = cheerio.load(data)
|
445
|
+
const result = [];
|
446
|
+
$('#gallery > li > figure > a').each(function(a, b) {
|
447
|
+
result.push($(b).find('img').attr('data-src'))
|
448
|
+
})
|
449
|
+
resolve(result)
|
450
|
+
})
|
451
|
+
.catch({status: 'err'})
|
452
|
+
})
|
453
|
+
}
|
454
|
+
|
455
|
+
function wattpad(judul){
|
456
|
+
return new Promise((resolve, reject) => {
|
457
|
+
axios.get('https://www.wattpad.com/search/' + judul)
|
458
|
+
.then(({data}) => {
|
459
|
+
const $ = cheerio.load(data)
|
460
|
+
const result = [];
|
461
|
+
const jdl = [];
|
462
|
+
const img = [];
|
463
|
+
const des = [];
|
464
|
+
const lnk = [];
|
465
|
+
const red = [];
|
466
|
+
const vt = [];
|
467
|
+
const limk = 'https://www.wattpad.com/'
|
468
|
+
$('div.cover.cover-xs.pull-left').each(function(a,b){
|
469
|
+
img.push($(b).find('img').attr('src'))
|
470
|
+
})
|
471
|
+
$('div.content > h5').each(function(a,b) {
|
472
|
+
jdl.push($(b).text().trim())
|
473
|
+
})
|
474
|
+
$('div.content > p').each(function(a,b){
|
475
|
+
des.push($(b).text().trim())
|
476
|
+
})
|
477
|
+
$('#results-stories > div > ul > li').each(function(a,b){
|
478
|
+
lnk.push(limk + $(b).find('a.on-result').attr('data-id'))
|
479
|
+
})
|
480
|
+
$('div.content > div > small.reads').each(function(a,b){
|
481
|
+
red.push($(b).text())
|
482
|
+
})
|
483
|
+
$('div.content > div > small.votes').each(function(a, b) {
|
484
|
+
vt.push($(b).text())
|
485
|
+
})
|
486
|
+
for (let i = 0; i < lnk.length; i++){
|
487
|
+
result.push({
|
488
|
+
judul: jdl[i],
|
489
|
+
desc: des[i],
|
490
|
+
vote: vt[i],
|
491
|
+
reads: red[i],
|
492
|
+
image: img[i],
|
493
|
+
link: lnk[i]
|
494
|
+
})
|
495
|
+
resolve(result)
|
496
|
+
}
|
497
|
+
})
|
498
|
+
.catch({message: 'err'})
|
499
|
+
})
|
500
|
+
}
|
501
|
+
|
502
|
+
function playstore(name){
|
503
|
+
return new Promise((resolve, reject) => {
|
504
|
+
axios.get('https://play.google.com/store/search?q='+ name +'&c=apps')
|
505
|
+
.then(({ data }) => {
|
506
|
+
const $ = cheerio.load(data)
|
507
|
+
let ln = [];
|
508
|
+
let nm = [];
|
509
|
+
let dv = [];
|
510
|
+
let lm = [];
|
511
|
+
const result = [];
|
512
|
+
$('div.wXUyZd > a').each(function(a,b){
|
513
|
+
const link = 'https://play.google.com' + $(b).attr('href')
|
514
|
+
ln.push(link);
|
515
|
+
})
|
516
|
+
$('div.b8cIId.ReQCgd.Q9MA7b > a > div').each(function(d,e){
|
517
|
+
const name = $(e).text().trim()
|
518
|
+
nm.push(name);
|
519
|
+
})
|
520
|
+
$('div.b8cIId.ReQCgd.KoLSrc > a > div').each(function(f,g){
|
521
|
+
const dev = $(g).text().trim();
|
522
|
+
dv.push(dev)
|
523
|
+
})
|
524
|
+
$('div.b8cIId.ReQCgd.KoLSrc > a').each(function(h,i){
|
525
|
+
const limk = 'https://play.google.com' + $(i).attr('href');
|
526
|
+
lm.push(limk);
|
527
|
+
})
|
528
|
+
for (let i = 0; i < ln.length; i++){
|
529
|
+
result.push({
|
530
|
+
name: nm[i],
|
531
|
+
link: ln[i],
|
532
|
+
developer: dv[i],
|
533
|
+
link_dev: lm[i]
|
534
|
+
})
|
535
|
+
}
|
536
|
+
resolve(result)
|
537
|
+
})
|
538
|
+
.catch(reject)
|
539
|
+
})
|
540
|
+
}
|
541
|
+
|
542
|
+
function linkwa(nama){
|
543
|
+
return new Promise((resolve,reject) => {
|
544
|
+
axios.get('http://ngarang.com/link-grup-wa/daftar-link-grup-wa.php?search='+ nama +'&searchby=name')
|
545
|
+
.then(({ data }) => {
|
546
|
+
const $ = cheerio.load(data);
|
547
|
+
const result = [];
|
548
|
+
const lnk = [];
|
549
|
+
const nm = [];
|
550
|
+
$('div.wa-chat-title-container').each(function(a,b){
|
551
|
+
const limk = $(b).find('a').attr('href');
|
552
|
+
lnk.push(limk)
|
553
|
+
})
|
554
|
+
$('div.wa-chat-title-text').each(function(c,d) {
|
555
|
+
const name = $(d).text();
|
556
|
+
nm.push(name)
|
557
|
+
})
|
558
|
+
for( let i = 0; i < lnk.length; i++){
|
559
|
+
result.push({
|
560
|
+
nama: nm[i].split('. ')[1],
|
561
|
+
link: lnk[i].split('?')[0]
|
562
|
+
})
|
563
|
+
}
|
564
|
+
resolve(result)
|
565
|
+
})
|
566
|
+
.catch(reject)
|
567
|
+
})
|
568
|
+
}
|
569
|
+
|
570
|
+
function pinterest(querry){
|
571
|
+
return new Promise(async(resolve,reject) => {
|
572
|
+
axios.get('https://id.pinterest.com/search/pins/?autologin=true&q=' + querry, {
|
573
|
+
headers: {
|
574
|
+
"cookie" : "_auth=1; _b=\"AVna7S1p7l1C5I9u0+nR3YzijpvXOPc6d09SyCzO+DcwpersQH36SmGiYfymBKhZcGg=\"; _pinterest_sess=TWc9PSZHamJOZ0JobUFiSEpSN3Z4a2NsMk9wZ3gxL1NSc2k2NkFLaUw5bVY5cXR5alZHR0gxY2h2MVZDZlNQalNpUUJFRVR5L3NlYy9JZkthekp3bHo5bXFuaFZzVHJFMnkrR3lTbm56U3YvQXBBTW96VUgzVUhuK1Z4VURGKzczUi9hNHdDeTJ5Y2pBTmxhc2owZ2hkSGlDemtUSnYvVXh5dDNkaDN3TjZCTk8ycTdHRHVsOFg2b2NQWCtpOWxqeDNjNkk3cS85MkhhSklSb0hwTnZvZVFyZmJEUllwbG9UVnpCYVNTRzZxOXNJcmduOVc4aURtM3NtRFo3STlmWjJvSjlWTU5ITzg0VUg1NGhOTEZzME9SNFNhVWJRWjRJK3pGMFA4Q3UvcHBnWHdaYXZpa2FUNkx6Z3RNQjEzTFJEOHZoaHRvazc1c1UrYlRuUmdKcDg3ZEY4cjNtZlBLRTRBZjNYK0lPTXZJTzQ5dU8ybDdVS015bWJKT0tjTWYyRlBzclpiamdsNmtpeUZnRjlwVGJXUmdOMXdTUkFHRWloVjBMR0JlTE5YcmhxVHdoNzFHbDZ0YmFHZ1VLQXU1QnpkM1FqUTNMTnhYb3VKeDVGbnhNSkdkNXFSMXQybjRGL3pyZXRLR0ZTc0xHZ0JvbTJCNnAzQzE0cW1WTndIK0trY05HV1gxS09NRktadnFCSDR2YzBoWmRiUGZiWXFQNjcwWmZhaDZQRm1UbzNxc21pV1p5WDlabm1UWGQzanc1SGlrZXB1bDVDWXQvUis3elN2SVFDbm1DSVE5Z0d4YW1sa2hsSkZJb1h0MTFpck5BdDR0d0lZOW1Pa2RDVzNySWpXWmUwOUFhQmFSVUpaOFQ3WlhOQldNMkExeDIvMjZHeXdnNjdMYWdiQUhUSEFBUlhUVTdBMThRRmh1ekJMYWZ2YTJkNlg0cmFCdnU2WEpwcXlPOVZYcGNhNkZDd051S3lGZmo0eHV0ZE42NW8xRm5aRWpoQnNKNnNlSGFad1MzOHNkdWtER0xQTFN5Z3lmRERsZnZWWE5CZEJneVRlMDd2VmNPMjloK0g5eCswZUVJTS9CRkFweHc5RUh6K1JocGN6clc1JmZtL3JhRE1sc0NMTFlpMVErRGtPcllvTGdldz0=; _ir=0"
|
575
|
+
}
|
576
|
+
}).then(({ data }) => {
|
577
|
+
const $ = cheerio.load(data)
|
578
|
+
const result = [];
|
579
|
+
const hasil = [];
|
580
|
+
$('div > a').get().map(b => {
|
581
|
+
const link = $(b).find('img').attr('src')
|
582
|
+
result.push(link)
|
583
|
+
});
|
584
|
+
result.forEach(v => {
|
585
|
+
if(v == undefined) return
|
586
|
+
hasil.push(v.replace(/236/g,'736'))
|
587
|
+
})
|
588
|
+
hasil.shift();
|
589
|
+
resolve(hasil)
|
590
|
+
})
|
591
|
+
})
|
592
|
+
}
|
593
|
+
|
594
|
+
function igdl(url){
|
595
|
+
return new Promise(async(resolve, reject) => {
|
596
|
+
axios.request({
|
597
|
+
url: 'https://www.instagramsave.com/download-instagram-videos.php',
|
598
|
+
method: 'GET',
|
599
|
+
headers:{
|
600
|
+
"user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36",
|
601
|
+
"cookie": "PHPSESSID=ugpgvu6fgc4592jh7ht9d18v49; _ga=GA1.2.1126798330.1625045680; _gid=GA1.2.1475525047.1625045680; __gads=ID=92b58ed9ed58d147-221917af11ca0021:T=1625045679:RT=1625045679:S=ALNI_MYnQToDW3kOUClBGEzULNjeyAqOtg"
|
602
|
+
}
|
603
|
+
})
|
604
|
+
.then(({ data }) => {
|
605
|
+
const $ = cheerio.load(data)
|
606
|
+
const token = $('#token').attr('value')
|
607
|
+
let config ={
|
608
|
+
headers: {
|
609
|
+
'content-type': 'application/x-www-form-urlencoded; charset=UTF-8',
|
610
|
+
"sec-ch-ua": '" Not;A Brand";v="99", "Google Chrome";v="91", "Chromium";v="91"',
|
611
|
+
"cookie": "PHPSESSID=ugpgvu6fgc4592jh7ht9d18v49; _ga=GA1.2.1126798330.1625045680; _gid=GA1.2.1475525047.1625045680; __gads=ID=92b58ed9ed58d147-221917af11ca0021:T=1625045679:RT=1625045679:S=ALNI_MYnQToDW3kOUClBGEzULNjeyAqOtg",
|
612
|
+
"user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36",
|
613
|
+
},
|
614
|
+
data: {
|
615
|
+
'url': url,
|
616
|
+
'action': 'post',
|
617
|
+
'token': token
|
618
|
+
}
|
619
|
+
}
|
620
|
+
axios.post('https://www.instagramsave.com/system/action.php',qs.stringify(config.data), { headers: config.headers })
|
621
|
+
.then(({ data }) => {
|
622
|
+
resolve(data.medias)
|
623
|
+
})
|
624
|
+
})
|
625
|
+
.catch(reject)
|
626
|
+
})
|
627
|
+
}
|
628
|
+
|
629
|
+
function igstory(username){
|
630
|
+
return new Promise(async(resolve, reject) => {
|
631
|
+
axios.request({
|
632
|
+
url: 'https://www.instagramsave.com/instagram-story-downloader.php',
|
633
|
+
method: 'GET',
|
634
|
+
headers:{
|
635
|
+
"user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36",
|
636
|
+
"cookie": "PHPSESSID=ugpgvu6fgc4592jh7ht9d18v49; _ga=GA1.2.1126798330.1625045680; _gid=GA1.2.1475525047.1625045680; __gads=ID=92b58ed9ed58d147-221917af11ca0021:T=1625045679:RT=1625045679:S=ALNI_MYnQToDW3kOUClBGEzULNjeyAqOtg"
|
637
|
+
}
|
638
|
+
})
|
639
|
+
.then(({ data }) => {
|
640
|
+
const $ = cheerio.load(data)
|
641
|
+
const token = $('#token').attr('value')
|
642
|
+
let config ={
|
643
|
+
headers: {
|
644
|
+
'content-type': 'application/x-www-form-urlencoded; charset=UTF-8',
|
645
|
+
"sec-ch-ua": '" Not;A Brand";v="99", "Google Chrome";v="91", "Chromium";v="91"',
|
646
|
+
"cookie": "PHPSESSID=ugpgvu6fgc4592jh7ht9d18v49; _ga=GA1.2.1126798330.1625045680; _gid=GA1.2.1475525047.1625045680; __gads=ID=92b58ed9ed58d147-221917af11ca0021:T=1625045679:RT=1625045679:S=ALNI_MYnQToDW3kOUClBGEzULNjeyAqOtg",
|
647
|
+
"user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36",
|
648
|
+
},
|
649
|
+
data: {
|
650
|
+
'url':'https://www.instagram.com/'+ username,
|
651
|
+
'action': 'story',
|
652
|
+
'token': token
|
653
|
+
}
|
654
|
+
}
|
655
|
+
axios.post('https://www.instagramsave.com/system/action.php',qs.stringify(config.data), { headers: config.headers })
|
656
|
+
.then(({ data }) => {
|
657
|
+
resolve(data.medias)
|
658
|
+
})
|
659
|
+
})
|
660
|
+
.catch(reject)
|
661
|
+
})
|
662
|
+
}
|
663
|
+
|
664
|
+
function igstalk(username){
|
665
|
+
return new Promise((resolve,reject) => {
|
666
|
+
axios.get('https://www.instagram.com/'+ username +'/?__a=1',{
|
667
|
+
method: 'GET',
|
668
|
+
headers: {
|
669
|
+
"user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.114 Safari/537.36",
|
670
|
+
"cookie": "mid=XBXl1AALAAEbFoAEfNjZlMMG9dwX; ig_did=91E66A48-5AA2-445D-BFE6-84DC4456DE8F; fbm_124024574287414=base_domain=.instagram.com; ig_nrcb=1; shbid=\"12737\0544008624962\0541656157971:01f72a5102dc07af6845adf923ca70eb86e81ab95fa9dbfdaf157c9eef0e82fd1f10fe23\"; shbts=\"1624621971\0544008624962\0541656157971:01f74841fba8e77a0066b47ea891dec8fba6fdf9216c0816f9fb3532292f769828800ae2\"; fbsr_124024574287414=86D8femzH4_KFW4hd3Z6XFdowU6lG-uXsXRQDNl44VM.eyJ1c2VyX2lkIjoiMTAwMDA0Njc2MDc4Nzg5IiwiY29kZSI6IkFRQngzXzVOejdwVnBwby1LRGRUdEYxUFlzcUdDQXJjcmJfb05HaWFvYkNvOGtLN2paam50bHpvMTNOakFnTzVKOHQ5M0V3U3dvNkRtZ0RiY1l1Z3dQSTIybnExOUxLd3lpZTVfZll0bkNXZXBuM1hoYWFLX0w2R0pZaUpzaDBOTDBhb3pmTVBkRTVQRC12X3FnbUgxLXZYdGVmcHhfaFU0aUZNZVMxNHhFUk5OblJyMmxYTUpDa2RFYTdISXNCR2swdHhaaGF0NUt4UDR3cWZTamRwcVFfQ19sa1RUek5fU0taUTYtMjlzTkdnLUVWb3oxMUZWc3Q2OEx2ZnlIY0V0eFp0ZUxacXpiWmh6MzZrVl83VmFGd0FqVnVkTGFQN2VzT3ZRcmlTQ2pLUE5XbVcyNWhudzIzejJBSnVURW00YWR1cmN6a3ZLWU1icTd2SnN0SVdJV09RIiwib2F1dGhfdG9rZW4iOiJFQUFCd3pMaXhuallCQUJBZmJuQ3haQzZMd3h4MDFJV2MyZ3dsQ3k3Qmp0b05UNUY0WDY2NHBrUzRQeERNVXRsdmhWWkI3SXE0MGsyZ2hJQm55RHRPcW5iVjlPbUNiWGhyTFBaQUhBQjFzVFpBdHF6RFEzVTROUkhOU1V6MFVXWkNtTEdLcDNNWDRoazVIOURLbERHN0QwUlhZNHY4dHBCdVNNYjN4dnBTRGtQcHdYRlBXVU82VCIsImFsZ29yaXRobSI6IkhNQUMtU0hBMjU2IiwiaXNzdWVkX2F0IjoxNjI0NjIxOTgxfQ; fbsr_124024574287414=86D8femzH4_KFW4hd3Z6XFdowU6lG-uXsXRQDNl44VM.eyJ1c2VyX2lkIjoiMTAwMDA0Njc2MDc4Nzg5IiwiY29kZSI6IkFRQngzXzVOejdwVnBwby1LRGRUdEYxUFlzcUdDQXJjcmJfb05HaWFvYkNvOGtLN2paam50bHpvMTNOakFnTzVKOHQ5M0V3U3dvNkRtZ0RiY1l1Z3dQSTIybnExOUxLd3lpZTVfZll0bkNXZXBuM1hoYWFLX0w2R0pZaUpzaDBOTDBhb3pmTVBkRTVQRC12X3FnbUgxLXZYdGVmcHhfaFU0aUZNZVMxNHhFUk5OblJyMmxYTUpDa2RFYTdISXNCR2swdHhaaGF0NUt4UDR3cWZTamRwcVFfQ19sa1RUek5fU0taUTYtMjlzTkdnLUVWb3oxMUZWc3Q2OEx2ZnlIY0V0eFp0ZUxacXpiWmh6MzZrVl83VmFGd0FqVnVkTGFQN2VzT3ZRcmlTQ2pLUE5XbVcyNWhudzIzejJBSnVURW00YWR1cmN6a3ZLWU1icTd2SnN0SVdJV09RIiwib2F1dGhfdG9rZW4iOiJFQUFCd3pMaXhuallCQUJBZmJuQ3haQzZMd3h4MDFJV2MyZ3dsQ3k3Qmp0b05UNUY0WDY2NHBrUzRQeERNVXRsdmhWWkI3SXE0MGsyZ2hJQm55RHRPcW5iVjlPbUNiWGhyTFBaQUhBQjFzVFpBdHF6RFEzVTROUkhOU1V6MFVXWkNtTEdLcDNNWDRoazVIOURLbERHN0QwUlhZNHY4dHBCdVNNYjN4dnBTRGtQcHdYRlBXVU82VCIsImFsZ29yaXRobSI6IkhNQUMtU0hBMjU2IiwiaXNzdWVkX2F0IjoxNjI0NjIxOTgxfQ; csrftoken=PpiPMEl0R2pAwThsw4NXynO6cVIXHZDo; ds_user_id=38316792800; sessionid=38316792800:rQj5Tr3g5zkg7b:4; rur=\"RVA\05438316792800\0541656158332:01f759cf624bef147397144805bb4c26f6c8b36a232e0f5738c570ee492f6b629f84f6e5\""
|
671
|
+
}
|
672
|
+
})
|
673
|
+
.then(({ data }) => {
|
674
|
+
const user = data.graphql.user
|
675
|
+
let result = {
|
676
|
+
message: 'By Kaysa',
|
677
|
+
id: user.id,
|
678
|
+
biography: user.biography,
|
679
|
+
followers: user.edge_followed_by.count,
|
680
|
+
following: user.edge_follow.count,
|
681
|
+
fullName: user.full_name,
|
682
|
+
highlightCount: user.highlight_reel_count,
|
683
|
+
isBusinessAccount: user.is_business_account,
|
684
|
+
isRecentUser: user.is_joined_recently,
|
685
|
+
accountCategory: user.business_category_name,
|
686
|
+
linkedFacebookPage: user.connected_fb_page,
|
687
|
+
isPrivate: user.is_private,
|
688
|
+
isVerified: user.is_verified,
|
689
|
+
profilePicHD: user.profile_pic_url_hd,
|
690
|
+
username: user.username,
|
691
|
+
postsCount: user.edge_owner_to_timeline_media.count
|
692
|
+
}
|
693
|
+
resolve(result)
|
694
|
+
})
|
695
|
+
.catch(reject)
|
696
|
+
})
|
697
|
+
}
|
698
|
+
|
699
|
+
function twitter(link){
|
700
|
+
return new Promise((resolve, reject) => {
|
701
|
+
let config = {
|
702
|
+
'URL': link
|
703
|
+
}
|
704
|
+
axios.post('https://twdown.net/download.php',qs.stringify(config),{
|
705
|
+
headers: {
|
706
|
+
"accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9",
|
707
|
+
"sec-ch-ua": '" Not;A Brand";v="99", "Google Chrome";v="91", "Chromium";v="91"',
|
708
|
+
"user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36",
|
709
|
+
"cookie": "_ga=GA1.2.1388798541.1625064838; _gid=GA1.2.1351476739.1625064838; __gads=ID=7a60905ab10b2596-229566750eca0064:T=1625064837:RT=1625064837:S=ALNI_Mbg3GGC2b3oBVCUJt9UImup-j20Iw; _gat=1"
|
710
|
+
}
|
711
|
+
})
|
712
|
+
.then(({ data }) => {
|
713
|
+
const $ = cheerio.load(data)
|
714
|
+
resolve({
|
715
|
+
desc: $('div:nth-child(1) > div:nth-child(2) > p').text().trim(),
|
716
|
+
thumb: $('div:nth-child(1) > img').attr('src'),
|
717
|
+
HD: $('tbody > tr:nth-child(1) > td:nth-child(4) > a').attr('href'),
|
718
|
+
SD: $('tr:nth-child(2) > td:nth-child(4) > a').attr('href'),
|
719
|
+
audio: 'https://twdown.net/' + $('tr:nth-child(4) > td:nth-child(4) > a').attr('href')
|
720
|
+
})
|
721
|
+
})
|
722
|
+
.catch(reject)
|
723
|
+
})
|
724
|
+
}
|
725
|
+
|
726
|
+
function fbdown(link){
|
727
|
+
return new Promise((resolve,reject) => {
|
728
|
+
let config = {
|
729
|
+
'url': link
|
730
|
+
}
|
731
|
+
axios('https://www.getfvid.com/downloader',{
|
732
|
+
method: 'POST',
|
733
|
+
data: new URLSearchParams(Object.entries(config)),
|
734
|
+
headers: {
|
735
|
+
"content-type": "application/x-www-form-urlencoded",
|
736
|
+
"user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36",
|
737
|
+
"cookie": "_ga=GA1.2.1310699039.1624884412; _pbjs_userid_consent_data=3524755945110770; cto_bidid=rQH5Tl9NNm5IWFZsem00SVVuZGpEd21sWnp0WmhUeTZpRXdkWlRUOSUyQkYlMkJQQnJRSHVPZ3Fhb1R2UUFiTWJuVGlhVkN1TGM2anhDT1M1Qk0ydHlBb21LJTJGNkdCOWtZalRtZFlxJTJGa3FVTG1TaHlzdDRvJTNE; cto_bundle=g1Ka319NaThuSmh6UklyWm5vV2pkb3NYaUZMeWlHVUtDbVBmeldhNm5qVGVwWnJzSUElMkJXVDdORmU5VElvV2pXUTJhQ3owVWI5enE1WjJ4ZHR5NDZqd1hCZnVHVGZmOEd0eURzcSUyQkNDcHZsR0xJcTZaRFZEMDkzUk1xSmhYMlY0TTdUY0hpZm9NTk5GYXVxWjBJZTR0dE9rQmZ3JTNEJTNE; _gid=GA1.2.908874955.1625126838; __gads=ID=5be9d413ff899546-22e04a9e18ca0046:T=1625126836:RT=1625126836:S=ALNI_Ma0axY94aSdwMIg95hxZVZ-JGNT2w; cookieconsent_status=dismiss"
|
738
|
+
}
|
739
|
+
})
|
740
|
+
.then(async({ data }) => {
|
741
|
+
const $ = cheerio.load(data);
|
742
|
+
resolve({
|
743
|
+
Normal_video: $('div.col-md-4.btns-download > p:nth-child(2) > a').attr('href'),
|
744
|
+
HD: $('div.col-md-4.btns-download > p:nth-child(1) > a').attr('href'),
|
745
|
+
audio: $('div.col-md-4.btns-download > p:nth-child(3) > a').attr('href')
|
746
|
+
})
|
747
|
+
})
|
748
|
+
.catch(reject)
|
749
|
+
})
|
750
|
+
}
|
751
|
+
|
752
|
+
function youtube(link){
|
753
|
+
return new Promise((resolve, reject) => {
|
754
|
+
const ytIdRegex = /(?:http(?:s|):\/\/|)(?:(?:www\.|)youtube(?:\-nocookie|)\.com\/(?:watch\?.*(?:|\&)v=|embed\/|v\/)|youtu\.be\/)([-_0-9A-Za-z]{11})/
|
755
|
+
if (ytIdRegex.test(link)) {
|
756
|
+
let url = ytIdRegex.exec(link)
|
757
|
+
let config = {
|
758
|
+
'url': 'https://www.youtube.be/' + url,
|
759
|
+
'q_auto': 0,
|
760
|
+
'ajax': 1
|
761
|
+
}
|
762
|
+
let headerss = {
|
763
|
+
"sec-ch-ua": '" Not;A Brand";v="99", "Google Chrome";v="91", "Chromium";v="91"',
|
764
|
+
"user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36",
|
765
|
+
"Cookie": 'PHPSESSID=6jo2ggb63g5mjvgj45f612ogt7; _ga=GA1.2.405896420.1625200423; _gid=GA1.2.2135261581.1625200423; _PN_SBSCRBR_FALLBACK_DENIED=1625200785624; MarketGidStorage={"0":{},"C702514":{"page":5,"time":1625200846733}}'
|
766
|
+
}
|
767
|
+
axios('https://www.y2mate.com/mates/en68/analyze/ajax',{
|
768
|
+
method: 'POST',
|
769
|
+
data: new URLSearchParams(Object.entries(config)),
|
770
|
+
headers: headerss
|
771
|
+
})
|
772
|
+
.then(({ data }) => {
|
773
|
+
const $ = cheerio.load(data.result)
|
774
|
+
let img = $('div.thumbnail.cover > a > img').attr('src');
|
775
|
+
let title = $('div.thumbnail.cover > div > b').text();
|
776
|
+
let size = $('#mp4 > table > tbody > tr:nth-child(3) > td:nth-child(2)').text()
|
777
|
+
let size_mp3 = $('#audio > table > tbody > tr:nth-child(1) > td:nth-child(2)').text()
|
778
|
+
let id = /var k__id = "(.*?)"/.exec(data.result)[1]
|
779
|
+
let configs = {
|
780
|
+
type: 'youtube',
|
781
|
+
_id: id,
|
782
|
+
v_id: url[1],
|
783
|
+
ajax: '1',
|
784
|
+
token: '',
|
785
|
+
ftype: 'mp4',
|
786
|
+
fquality: 480
|
787
|
+
}
|
788
|
+
axios('https://www.y2mate.com/mates/en68/convert',{
|
789
|
+
method: 'POST',
|
790
|
+
data: new URLSearchParams(Object.entries(configs)),
|
791
|
+
headers: headerss
|
792
|
+
})
|
793
|
+
.then(({data}) => {
|
794
|
+
const $ = cheerio.load(data.result)
|
795
|
+
let link = $('div > a').attr('href')
|
796
|
+
let configss = {
|
797
|
+
type: 'youtube',
|
798
|
+
_id: id,
|
799
|
+
v_id: url[1],
|
800
|
+
ajax: '1',
|
801
|
+
token: '',
|
802
|
+
ftype: 'mp3',
|
803
|
+
fquality: 128
|
804
|
+
}
|
805
|
+
axios('https://www.y2mate.com/mates/en68/convert',{
|
806
|
+
method: 'POST',
|
807
|
+
data: new URLSearchParams(Object.entries(configss)),
|
808
|
+
headers: headerss
|
809
|
+
})
|
810
|
+
.then(({ data }) => {
|
811
|
+
const $ = cheerio.load(data.result)
|
812
|
+
let audio = $('div > a').attr('href')
|
813
|
+
resolve({
|
814
|
+
id: url[1],
|
815
|
+
title: title,
|
816
|
+
size: size,
|
817
|
+
quality: '480p',
|
818
|
+
thumb: img,
|
819
|
+
link: link,
|
820
|
+
size_mp3: size_mp3,
|
821
|
+
mp3: audio
|
822
|
+
})
|
823
|
+
|
824
|
+
})
|
825
|
+
})
|
826
|
+
})
|
827
|
+
.catch(reject)
|
828
|
+
}else reject('link invalid')
|
829
|
+
})
|
830
|
+
}
|
831
|
+
|
832
|
+
function ttdownloader(url){
|
833
|
+
return new Promise(async(resolve, reject) => {
|
834
|
+
axios.get('https://ttdownloader.com/',{
|
835
|
+
headers: {
|
836
|
+
"accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9",
|
837
|
+
"user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36",
|
838
|
+
"cookie": "PHPSESSID=9ut8phujrprrmll6oc3bist01t; popCookie=1; _ga=GA1.2.1068750365.1625213061; _gid=GA1.2.842420949.1625213061"
|
839
|
+
}
|
840
|
+
})
|
841
|
+
.then(({ data }) => {
|
842
|
+
const $ = cheerio.load(data)
|
843
|
+
let token = $('#token').attr('value')
|
844
|
+
let config = {
|
845
|
+
'url': url,
|
846
|
+
'format': '',
|
847
|
+
'token': token
|
848
|
+
}
|
849
|
+
axios('https://ttdownloader.com/req/',{
|
850
|
+
method: 'POST',
|
851
|
+
data : new URLSearchParams(Object.entries(config)),
|
852
|
+
headers: {
|
853
|
+
"accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9",
|
854
|
+
"user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36",
|
855
|
+
"cookie": "PHPSESSID=9ut8phujrprrmll6oc3bist01t; popCookie=1; _ga=GA1.2.1068750365.1625213061; _gid=GA1.2.842420949.1625213061"
|
856
|
+
}
|
857
|
+
})
|
858
|
+
.then(({ data }) => {
|
859
|
+
const $ = cheerio.load(data)
|
860
|
+
resolve({
|
861
|
+
message: 'By Kaysa',
|
862
|
+
nowm: $('div:nth-child(2) > div.download > a').attr('href'),
|
863
|
+
wm: $('div:nth-child(3) > div.download > a').attr('href'),
|
864
|
+
audio: $('div:nth-child(4) > div.download > a').attr('href')
|
865
|
+
})
|
866
|
+
})
|
867
|
+
})
|
868
|
+
.catch(reject)
|
869
|
+
})
|
870
|
+
}
|
871
|
+
|
872
|
+
module.exports.otakudesu = otakudesu
|
873
|
+
module.exports.covid = covid
|
874
|
+
module.exports.ongoing = ongoing
|
875
|
+
module.exports.komiku = komiku
|
876
|
+
module.exports.tebakgambar = tebakgambar
|
877
|
+
module.exports.surah = surah
|
878
|
+
module.exports.sholat = sholat
|
879
|
+
module.exports.lirik = lirik
|
880
|
+
module.exports.chara = chara
|
881
|
+
module.exports.wattpad = wattpad
|
882
|
+
module.exports.playstore = playstore
|
883
|
+
module.exports.linkwa = linkwa
|
884
|
+
module.exports.pinterest = pinterest
|
885
|
+
module.exports.igdl = igdl
|
886
|
+
module.exports.igstory = igstory
|
887
|
+
module.exports.igstalk = igstalk
|
888
|
+
module.exports.twitter = twitter
|
889
|
+
module.exports.fbdown = fbdown
|
890
|
+
module.exports.youtube = youtube
|
891
|
+
module.exports.ttdownloader = ttdownloader
|
892
|
+
module.exports.stickersearch = stickersearch
|
893
|
+
module.exports.film = film
|
894
|
+
module.exports.anime = anime
|
895
|
+
module.exports.manga = manga
|
896
|
+
module.exports.jadwalbola = jadwalbola
|
897
|
+
module.exports.jadwaltv = jadwaltv
|
898
|
+
|
899
|
+
|
package/package.json
ADDED
@@ -0,0 +1,31 @@
|
|
1
|
+
{
|
2
|
+
"name": "kys-api",
|
3
|
+
"version": "1.0.0",
|
4
|
+
"description": "kaysa-api",
|
5
|
+
"main": "index.js",
|
6
|
+
"scripts": {
|
7
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
8
|
+
},
|
9
|
+
"repository": {
|
10
|
+
"type": "git",
|
11
|
+
"url": "git+https://github.com/Hexagonz/Hexa-api.git"
|
12
|
+
},
|
13
|
+
"keywords": [
|
14
|
+
"YNTKTS"
|
15
|
+
],
|
16
|
+
"author": "Kaysa",
|
17
|
+
"license": "ISC",
|
18
|
+
"bugs": {
|
19
|
+
"url": "https://github.com/Hexagonz/Hexa-Api/issues"
|
20
|
+
},
|
21
|
+
"homepage": "https://github.com/Hexagonz/Hexa-Api#readme",
|
22
|
+
"dependencies": {
|
23
|
+
"axios": "^0.21.1",
|
24
|
+
"cheerio": "^1.0.0-rc.10",
|
25
|
+
"qs": "^6.10.1",
|
26
|
+
"request": "^2.88.2"
|
27
|
+
},
|
28
|
+
"directories": {
|
29
|
+
"lib": "lib"
|
30
|
+
}
|
31
|
+
}
|