scraperjavascript385
AniWanTV APK - In-App Anime Streaming & Manga Reader Scraper
Scraper konten asli di dalam APK AniWanTV: Streaming video anime embed, direct downloads, daftar komik/manga, sinopsis, dan pembaca gambar chapter.
Vamz Spectre26 Okt 2026355 baris kode
Jalankan via Terminal / CLI:
# 1. Download file script
curl -sL "https://code.vamxapi.my.id/snippet/raw/aniwantv-content" -o aniwantv-content.js
# 2. Jalankan script
node aniwantv-content.js
Dependencies npm yang Dibutuhkan:
npm install axios, cheerioPanduan Penggunaan:
curl -sL https://code.vamxapi.my.id/snippet/raw/aniwantv-content -o aniwantv-content.js && node aniwantv-content.js
aniwantv-content.js(355 lines)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
/**
* Scraper: AniWanTV Mobile - In-App Anime Streaming & Manga Reader Scraper
* Author: Vamz Spectre (vamxapi.my.id)
* Description: Scraper konten asli di dalam APK AniWanTV (Streaming Anime, Video Player, Komik/Manga Reader, Chapter Images, Search)
*
* Usage:
* curl -sL "https://code.vamxapi.my.id/snippet/raw/aniwantv-content" -o aniwantv-content.js
* node aniwantv-content.js
* node aniwantv-content.js "anime"
* node aniwantv-content.js "komik"
* node aniwantv-content.js "search:solo leveling"
* node aniwantv-content.js "https://komikindo.ch/remonster-chapter-124/"
* node aniwantv-content.js "https://otakudesu.fit/tensei-goblin-dakedo-shitsumon-aru-episode-5-subtitle-indonesia/"
*/
const axios = require('axios');
const cheerio = require('cheerio');
const HEADERS = {
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36',
'Accept-Language': 'id-ID,id;q=0.9,en-US;q=0.8,en;q=0.7',
'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8'
};
const ANIME_BASE = 'https://otakudesu.fit';
const COMIC_BASE = 'https://komikindo.ch';
/**
* Mengambil daftar anime ongoing / rilis terbaru dari feed AniWanTV
*/
async function getLatestAnime() {
const res = await axios.get(ANIME_BASE, { headers: HEADERS, timeout: 15000 });
const $ = cheerio.load(res.data);
const anime = [];
$('article').each((_, el) => {
const title = $(el).find('h2').text().trim();
const url = $(el).find('a').first().attr('href') || '';
const thumb = $(el).find('img').first().attr('src') || '';
const episode = $(el).find('.epz, .bt .ep').text().trim() || 'Ongoing';
const releaseTime = $(el).find('.time, time').text().trim() || null;
if (title && url) {
anime.push({
title,
episode,
releaseTime,
url,
thumb
});
}
});
return anime;
}
/**
* Mengambil detail episode anime, iframe streaming video player, dan link download
*/
async function getAnimeEpisode(url) {
const res = await axios.get(url, { headers: HEADERS, timeout: 15000 });
const $ = cheerio.load(res.data);
const title = $('h1.entry-title, h1').first().text().trim() || 'Episode Anime';
const thumb = $('.fotoanime img, img.wp-post-image, .thumb img').first().attr('src') || null;
const synopsis = $('.sinopc, .entry-content p').first().text().trim() || null;
const streamIframe = $('iframe').first().attr('src') || null;
const downloads = [];
$('a').each((_, el) => {
const href = $(el).attr('href');
const text = $(el).text().trim();
if (href && (href.includes('gofile') || href.includes('pixeldrain') || href.includes('drive') || href.includes('mega') || href.includes('mediafire') || href.includes('krakenfiles'))) {
downloads.push({
server: text || 'Mirror Download',
url: href
});
}
});
const episodes = [];
$('a').each((_, el) => {
const href = $(el).attr('href');
const epTitle = $(el).text().trim();
if (href && href.includes('-episode-') && !href.includes('facebook') && !href.includes('twitter') && !href.includes('whatsapp') && !href.includes('t.me')) {
if (!episodes.some(e => e.url === href) && epTitle && !epTitle.toLowerCase().includes('cancel')) {
episodes.push({ title: epTitle.replace(/\s+/g, ' '), url: href });
}
}
});
return {
title,
thumb,
synopsis,
streamIframe,
downloads,
episodes
};
}
/**
* Mengambil daftar komik terbaru dari feed AniWanTV
*/
async function getLatestComics(page = 1) {
const url = page === 1 ? `${COMIC_BASE}/komik-terbaru/` : `${COMIC_BASE}/komik-terbaru/page/${page}/`;
const res = await axios.get(url, { headers: HEADERS, timeout: 15000 });
const $ = cheerio.load(res.data);
const comics = [];
$('.animepost').each((_, el) => {
const link = $(el).find('a[itemprop="url"]').first();
if (!link.length) return;
const title = link.attr('title')?.replace(/^Komik\s+/i, '').trim() || link.text().trim();
const href = link.attr('href') || '';
const image_url = $(el).find('img[itemprop="image"]').attr('src') || '';
const type = $(el).find('span[class*="typeflag"]').attr('class')?.split(' ').pop() || 'Manga';
const is_colored = $(el).find('div.warnalabel').length > 0;
const is_hot = $(el).find('span.hot').length > 0;
const ch = $(el).find('div.lsch a').first();
const latest_chapter = ch.text().trim() || 'N/A';
const chapter_url = ch.attr('href') || '';
const update_time = $(el).find('span.datech').text().trim() || 'N/A';
comics.push({
title,
type,
is_colored,
is_hot,
latest_chapter,
update_time,
url: href,
chapter_url,
image_url
});
});
return comics;
}
/**
* Mengambil detail komik dan seluruh daftar chapter
*/
async function getComicDetails(comicUrl) {
const res = await axios.get(comicUrl, { headers: HEADERS, timeout: 15000 });
const $ = cheerio.load(res.data);
const title = $('.entry-title, h1.entry-title').first().text().replace(/^Komik\s+/i, '').trim();
const image_url = $('.thumb img').first().attr('src') || '';
const rating = $('.archiveanime-rating i').first().text().trim() || 'N/A';
const status = $('.spe span:contains("Status")').text().replace(/Status\s*:\s*/i, '').trim() || 'N/A';
const author = $('.spe span:contains("Pengarang")').text().replace(/Pengarang\s*:\s*/i, '').trim() || 'N/A';
const type = $('.spe span:contains("Jenis Komik") a').text().trim() || 'N/A';
const synopsis = $('.komik_info-description-sinopsis p, .entry-content-single p').text().trim() || '';
const genres = [];
$('.genre-info a, .spe span:contains("Genre") a').each((_, el) => {
const g = $(el).text().trim();
if (g && !genres.includes(g)) genres.push(g);
});
const chapters = [];
$('.eps_lst li, #chapter_list li').each((_, el) => {
const chLink = $(el).find('a').first();
const chTitle = chLink.find('.lchx, .chapternum').text().trim() || chLink.text().trim();
const chUrl = chLink.attr('href') || '';
const chDate = $(el).find('.dt, .date').text().trim() || '';
if (chUrl) {
chapters.push({
title: chTitle,
url: chUrl,
update_time: chDate
});
}
});
return {
title,
image_url,
rating,
status,
author,
type,
genres,
synopsis,
chapters_count: chapters.length,
chapters
};
}
/**
* Mengambil semua gambar lembaran komik dari satu chapter (Manga Reader)
*/
async function getChapterImages(chapterUrl) {
const res = await axios.get(chapterUrl, { headers: HEADERS, timeout: 15000 });
const $ = cheerio.load(res.data);
const title = $('.entry-title, h1').first().text().trim();
const images = [];
$('#chimg-auh img, .reader-area img').each((i, el) => {
const src = $(el).attr('src') || $(el).attr('data-src') || '';
const alt = $(el).attr('alt') || `Halaman ${i + 1}`;
if (src && !images.some(img => img.url === src)) {
images.push({ page: images.length + 1, url: src, alt });
}
});
const nextChapter = $('.nextprev a.next, a[rel="next"]').attr('href') || null;
const prevChapter = $('.nextprev a.prev, a[rel="prev"]').attr('href') || null;
return {
title,
total_pages: images.length,
navigation: {
prev: prevChapter,
next: nextChapter
},
images
};
}
/**
* Mencari komik di KomikIndo
*/
async function searchComics(query) {
const url = `${COMIC_BASE}/?s=${encodeURIComponent(query)}`;
const res = await axios.get(url, { headers: HEADERS, timeout: 15000 });
const $ = cheerio.load(res.data);
const results = [];
$('.animepost').each((_, el) => {
const link = $(el).find('a[itemprop="url"]').first();
const title = link.attr('title')?.replace(/^Komik\s+/i, '').trim() || link.text().trim();
const href = link.attr('href') || '';
const image_url = $(el).find('img[itemprop="image"]').attr('src') || '';
const type = $(el).find('span[class*="typeflag"]').attr('class')?.split(' ').pop() || 'Unknown';
if (title && href) {
results.push({
title,
url: href,
image_url,
type
});
}
});
return results;
}
/**
* Router utama fungsi scraper
*/
async function scrapeAniWanTV(input = '') {
const query = (input || '').trim();
try {
// 1. Chapter Images reader
if (query.includes('chapter-') || query.includes('/chapter/')) {
const data = await getChapterImages(query);
return { status: true, creator: 'Vamz Spectre', type: 'chapter_reader', data };
}
// 2. Comic Details
if (query.includes('komikindo.ch/komik/')) {
const data = await getComicDetails(query);
return { status: true, creator: 'Vamz Spectre', type: 'comic_details', data };
}
// 3. Anime Episode Stream & Download
if (query.includes('otakudesu') && query.includes('-episode-')) {
const data = await getAnimeEpisode(query);
return { status: true, creator: 'Vamz Spectre', type: 'anime_episode_stream', data };
}
// 4. Search Anime & Komik
if (query.startsWith('search:') || (query.length > 0 && !['anime', 'komik', 'all'].includes(query.toLowerCase()))) {
const q = query.replace(/^search:\s*/i, '');
const comics = await searchComics(q);
return {
status: true,
creator: 'Vamz Spectre',
type: 'search_results',
query: q,
total: comics.length,
data: {
comics
}
};
}
// 5. Anime Only
if (query.toLowerCase() === 'anime') {
const anime = await getLatestAnime();
return {
status: true,
creator: 'Vamz Spectre',
type: 'anime_feed',
total: anime.length,
data: anime
};
}
// 6. Komik Only
if (query.toLowerCase() === 'komik') {
const comics = await getLatestComics(1);
return {
status: true,
creator: 'Vamz Spectre',
type: 'comic_feed',
total: comics.length,
data: comics
};
}
// 7. Default Dashboard Feed (Anime + Komik)
const [anime, comics] = await Promise.all([
getLatestAnime().catch(() => []),
getLatestComics(1).catch(() => [])
]);
return {
status: true,
creator: 'Vamz Spectre',
type: 'in_app_dashboard',
data: {
ongoing_anime: anime.slice(0, 10),
latest_comics: comics.slice(0, 10)
}
};
} catch (error) {
return {
status: false,
creator: 'Vamz Spectre',
error: error.message || 'Gagal mengambil data dari AniWanTV APK content provider'
};
}
}
module.exports = scrapeAniWanTV;
// CLI Runner
if (require.main === module) {
const param = process.argv[2] || '';
scrapeAniWanTV(param)
.then(res => console.log(JSON.stringify(res, null, 2)))
.catch(err => {
console.error(JSON.stringify({ status: false, error: err.message }, null, 2));
process.exit(1);
});
}