Selamat Datang di
Cx99 Source Code
Platform berbagi snippet dan modul kode pemrograman untuk developer.
Downloader
JavaScript
Mendownload Foto, Carousel, Video, dan GIF
/**
* Judul : Pinterest Downloader
* Base URL : https://ssspin.io
* Author : Cx99 - t.me/exploit99
* Deskripsi : Mendownload Foto, Carousel, Video, dan GIF
* Channel : https://whatsapp.com/channel/0029VbCSF8sA89MopCVOYW06
*/
'use strict'
const axios = require('axios')
const cheerio = require('cheerio')
const FormData = require('form-data')
const BASE_URL = 'https://ssspin.io'
const HEADERS = {
'User-Agent': 'Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Mobile Safari/537.36',
Accept: '*/*',
'Accept-Language': 'id-ID,id;q=0.9,en-US;q=0.8,en;q=0.7',
Origin: BASE_URL,
Referer: `${BASE_URL}/id`,
'X-Requested-With': 'XMLHttpRequest'
}
async function pindown(targetUrl) {
try {
targetUrl = String(targetUrl || '').trim()
if (!targetUrl) throw new Error('URL wajib diisi')
const parsed = new URL(targetUrl)
if (!['http:', 'https:'].includes(parsed.protocol)) throw new Error('URL tidak valid')
const initRes = await axios.get(`${BASE_URL}/id`, {
headers: { 'User-Agent': HEADERS['User-Agent'], Accept: 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' },
timeout: 30000
})
const cookies = initRes.headers['set-cookie']
const cookieHeader = cookies ? cookies.map(cookie => cookie.split(';')[0]).join('; ') : ''
let vtoken = ''
try {
const form = new FormData()
form.append('url', targetUrl)
const { data } = await axios.post(`${BASE_URL}/action/token`, form, {
headers: { ...HEADERS, ...form.getHeaders(), Cookie: cookieHeader },
timeout: 30000
})
if (typeof data === 'string') vtoken = data
else vtoken = data?.token || data?.vtoken || ''
} catch {
const match = initRes.data.match(/name=["']vtoken["']\s+value=["']([^"']+)["']/i) || initRes.data.match(/vtoken\s*=\s*["']([^"']+)["']/i)
if (match) vtoken = match[1]
}
const form = new FormData()
form.append('lang', 'id')
form.append('url', targetUrl)
if (vtoken) form.append('vtoken', vtoken)
const { data } = await axios.post(`${BASE_URL}/action`, form, {
headers: { ...HEADERS, ...form.getHeaders(), Cookie: cookieHeader },
timeout: 30000
})
if (!data?.success || !data?.html) throw new Error('Gagal memproses data dari server')
const $ = cheerio.load(data.html)
let title = $('h3, h4, .title, p strong, p').not(':contains("Download")').first().text().trim()
if (!title) title = $('h2').first().text().trim()
const thumbnail = $('img').first().attr('src') || ''
const downloads = []
const seen = new Set()
$('a, button').each((_, el) => {
const text = $(el).text().trim().replace(/\s+/g, ' ')
let link = $(el).attr('href') || $(el).attr('data-url') || $(el).attr('data-href')
if (!link || link === '#' || /^javascript:/i.test(link)) return
try {
link = new URL(link, BASE_URL).href
} catch {
return
}
if (link.endsWith('/id') || /download lagi/i.test(text) || seen.has(link)) return
seen.add(link)
downloads.push({ quality: text || 'Download', url: link })
})
if (!downloads.length && thumbnail) {
downloads.push({ quality: 'Download Gambar Asli', url: new URL(thumbnail, BASE_URL).href })
for (const size of ['736x', '600x315', '564x', '474x', '170x', '236x', '136x136', '60x60']) {
const url = thumbnail.replace('/originals/', `/${size}/`)
if (url !== thumbnail) downloads.push({ quality: `Download Gambar [${size}]`, url })
}
}
return { status: true, title, thumbnail, downloads }
} catch (error) {
return { status: false, message: error.response?.data?.message || error.message }
}
}
module.exports = { pindown }
(async () => {
const { pindown } = require('./pindown')
const result = await pindown('https://pin.it/xxxxx')
console.log(JSON.stringify(result, null, 2))
})()
Cx99 • 10 views
Downloader
JavaScript
Mendownload video,audio dan foto
/**
* Judul : Tiktok Downloader
* Base URL : https://snaptikid.com
* Author : Cx99 - t.me/exploit99
* Deskripsi : Mendownload video, audio, dan foto TikTok melalui SnapTikID
* Channel : https://whatsapp.com/channel/0029VbCSF8sA89MopCVOYW06
*/
'use strict'
const axios = require('axios')
const ENDPOINT = 'https://www.tikwm.com/api/'
const SITE = 'https://snaptikid.com'
const http = axios.create({
timeout: 30000,
headers: {
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36',
Origin: SITE,
Referer: `${SITE}/`,
'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8',
Accept: 'application/json, text/javascript, */*; q=0.01'
}
})
const unique = values => [...new Set(values.filter(Boolean))]
const number = value => {
const n = Number(value)
return Number.isFinite(n) ? n : 0
}
const isoTime = value => {
if (!value) return null
const date = new Date(Number(value) * 1000)
return Number.isNaN(date.getTime()) ? null : date.toISOString()
}
const mediaSize = value => {
const bytes = Number(value)
if (!Number.isFinite(bytes) || bytes <= 0) return null
return bytes >= 1024 * 1024
? `${(bytes / 1024 / 1024).toFixed(2)} MB`
: `${(bytes / 1024).toFixed(2)} KB`
}
const addMedia = (list, cache, item) => {
if (!item.url || cache.has(item.url)) return
cache.add(item.url)
list.push(item)
}
async function tiktokdl(target) {
target = String(target || '').trim()
if (!target) return { status: false, error: 'URL TikTok tidak boleh kosong' }
if (!/tiktok\.com/i.test(target)) return { status: false, error: 'URL yang dimasukkan bukan URL TikTok' }
try {
const body = new URLSearchParams({ url: target, hd: '1' }).toString()
const { data: payload } = await http.post(ENDPOINT, body)
if (!payload || payload.code !== 0 || !payload.data) {
throw new Error(payload?.msg || 'Data TikTok tidak berhasil diperoleh')
}
const item = payload.data
const media = []
const used = new Set()
const hdVideo = item.hdplay || null
const normalVideo = item.play || null
const watermarkVideo = item.wmplay || null
const music = item.music || item.music_info?.play || null
const resolution = item.width && item.height ? `${item.width}x${item.height}` : null
if (hdVideo) addMedia(media, used, {
kind: 'video', quality: 'HD', watermark: false, format: 'mp4',
resolution, size: mediaSize(item.hd_size || item.size),
size_bytes: item.hd_size || item.size || null, url: hdVideo
})
if (normalVideo) addMedia(media, used, {
kind: 'video', quality: 'SD', watermark: false, format: 'mp4',
resolution, size: mediaSize(item.size), size_bytes: item.size || null, url: normalVideo
})
if (watermarkVideo) addMedia(media, used, {
kind: 'video', quality: 'Watermark', watermark: true, format: 'mp4',
resolution, size: mediaSize(item.wm_size), size_bytes: item.wm_size || null, url: watermarkVideo
})
if (music) addMedia(media, used, {
kind: 'audio', quality: 'Original', format: 'mp3',
resolution: null, size: null, size_bytes: null, url: music
})
const pictures = unique(Array.isArray(item.images) ? item.images : [])
pictures.forEach((url, index) => addMedia(media, used, {
kind: 'image', quality: `Photo ${index + 1}`, format: 'jpg',
resolution: null, size: null, size_bytes: null, url
}))
return {
status: true,
result: {
id: item.id || null,
content_type: pictures.length ? 'carousel' : 'video',
title: String(item.title || '').trim(),
region: item.region || null,
duration: number(item.duration),
created_at: isoTime(item.create_time),
cover: item.cover || item.origin_cover || null,
creator: {
id: item.author?.id || null,
username: item.author?.unique_id || null,
name: item.author?.nickname || null,
avatar: item.author?.avatar || null
},
stats: {
views: number(item.play_count),
likes: number(item.digg_count),
comments: number(item.comment_count),
shares: number(item.share_count),
saves: number(item.collect_count)
},
sound: item.music_info ? {
id: item.music_info.id || null,
title: item.music_info.title || null,
artist: item.music_info.author || null,
duration: number(item.music_info.duration),
url: music
} : null,
videos: {
no_watermark: hdVideo || normalVideo || null,
watermark: watermarkVideo || null
},
photos: pictures,
media
}
}
} catch (error) {
return {
status: false,
error: error.response?.data?.msg || error.message
}
}
}
module.exports = { tiktokdl }
(async () => {
const { tiktokdl } = require('./tiktokdl')
const result = await tiktokdl('https://www.tiktok.com/@user/video/123')
console.log(JSON.stringify(result, null, 2))
})()
Cx99 • 9 views
Downloader
JavaScript
Mendownload Media Instagram
/**
* Judul : Instagram Downloader
* Base URL : https://savefromins.com
* Author : Cx99 - t.me/exploit99
* Deskripsi : Mendownload media Instagram Support (Story/Video/Photo Carouse)
* Channel : https://whatsapp.com/channel/0029VbCSF8sA89MopCVOYW06
*/
'use strict'
const axios = require('axios')
const SITE = 'https://savefromins.com'
const API = 'https://api.savefromins.com/api/contentsite_api/media/parse'
const UA = 'Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Mobile Safari/537.36'
const get = url => axios.get(url, {
headers: {
accept: '*/*',
'user-agent': UA
},
timeout: 30000
})
const extractScripts = html => {
const scripts = new Set()
const regex = /(?:src=["'])(https?:\/\/[^"']+\.js[^"']*)/gi
let match
while ((match = regex.exec(html))) scripts.add(match[1])
return [...scripts]
}
const extractAuth = text => {
const patterns = [
/["']auth["']\s*[:=]\s*["']([^"']{8,})["']/gi,
/\bauth\s*[:=]\s*["']([^"']{8,})["']/gi,
/["']auth["']\s*,\s*["']([^"']{8,})["']/gi
]
for (const regex of patterns) {
let match
while ((match = regex.exec(text))) {
const value = match[1]
if (value && !value.includes('${') && !value.includes('auth') && value.length >= 8) {
return value
}
}
}
return null
}
const findDomain = text => {
const match = text.match(/(?:https?:\/\/)?(api-ak\.savefromins\.com)/i)
return match ? match[1] : 'api-ak.savefromins.com'
}
async function getConfig() {
const home = await get(`${SITE}/`)
const scripts = extractScripts(home.data)
let auth = extractAuth(home.data)
let domain = findDomain(home.data)
for (const script of scripts) {
if (auth) break
try {
const res = await get(script)
const found = extractAuth(res.data)
if (found) {
auth = found
domain = findDomain(res.data)
}
} catch {}
}
if (!auth) throw new Error('Auth tidak ditemukan dari frontend SaveFromIns')
return { auth, domain }
}
async function igdl(link) {
if (!link) {
return {
status: false,
message: 'URL Instagram tidak boleh kosong!'
}
}
if (!/^https?:\/\/(www\.)?instagram\.com\//i.test(link.trim())) {
return {
status: false,
message: 'URL Instagram tidak valid!'
}
}
try {
const { auth, domain } = await getConfig()
const res = await axios.post(
API,
new URLSearchParams({
auth,
domain,
origin: 'source',
link: link.trim()
}).toString(),
{
headers: {
accept: '*/*',
'accept-language': 'id-ID,id;q=0.9,en-US;q=0.8,en;q=0.7',
'content-type': 'application/x-www-form-urlencoded',
origin: SITE,
referer: `${SITE}/`,
'user-agent': UA
},
timeout: 30000
}
)
return res.data
} catch (e) {
return e.response?.data ?? {
status: false,
message: e.message
}
}
}
module.exports = { igdl }
(async () => {
const { igdl } = require('./igdl')
const result = await igdl('https://www.instagram.com/reel/xxxxxxxx/')
console.log(JSON.stringify(result, null, 2))
})()
Cx99 • 10 views
Downloader
JavaScript
Mendownload lagu di spotify
/**
* Judul : Spotify Downloader
* Base URL : https://musicfab.io/
* Author : Cx99 - t.me/exploit99
* Deskripsi : Mendownload Spotify Music melalui MusicFab
* Channel : https://whatsapp.com/channel/0029VbCSF8sA89MopCVOYW06
*/
async function musicFab(spotifyUrl) {
try {
if (!spotifyUrl) {
return {
status: false,
message: 'URL Spotify tidak boleh kosong!'
};
}
const response = await fetch('https://musicfab.io/api/spotify', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'User-Agent': 'Mozilla/5.0 (Linux; Android 10) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Mobile Safari/537.36',
'Origin': 'https://musicfab.io',
'Referer': 'https://musicfab.io/'
},
body: JSON.stringify({
url: spotifyUrl.trim()
})
});
return await response.json();
} catch (error) {
return {
status: false,
message: error.message
};
}
}
module.exports = { musicFab };
(async () => {
const result = await musicFab('https://open.spotify.com/track/xxxxxxxx');
console.log(JSON.stringify(result, null, 2));
})();
Cx99 • 10 views
Anime
JavaScript
Mencari anime Otakudesu
/**
* Judul : Otakudesu Scraper
* Base URL : https://otakudesu.blog
* Author : Cx99 - t.me/exploit99
* Deskripsi : Mencari anime Otakudesu
* Channel : https://whatsapp.com/channel/0029VbCSF8sA89MopCVOYW06
*/
const fs = require('fs');
const ORIGIN = 'https://otakudesu.blog';
const USER_AGENT = 'Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Mobile Safari/537.36';
const CREATOR = 't.me/luyatiem';
let dumped = false;
const decode = s => s
.replace(/&#(\d+);/g, (_, n) => String.fromCharCode(Number(n)))
.replace(/&#x([0-9a-f]+);/gi, (_, n) => String.fromCharCode(parseInt(n, 16)))
.replace(/"/g, '"').replace(/'|'/g, "'")
.replace(/</g, '<').replace(/>/g, '>')
.replace(/ /g, ' ').replace(/&/g, '&');
const clean = s => decode((s || '').replace(/<[^>]+>/g, ' ')).replace(/\s+/g, ' ').trim();
const pick = (s, re) => s.match(re)?.[1] || '';
function dump(name, html) {
if (dumped) return;
dumped = true;
fs.writeFileSync(name, html);
return name;
}
function parseCards(html, type) {
return html.split(/<li><div class=['"]detpost['"]>/).slice(1).map(chunk => {
const epz = clean(pick(chunk, /<div class=['"]epz['"]>([\s\S]*?)<\/div>/));
const tipe = clean(pick(chunk, /<div class=['"]epztipe['"]>([\s\S]*?)<\/div>/));
const item = {
title: clean(pick(chunk, /<h2 class="jdlflm">([\s\S]*?)<\/h2>/)),
url: pick(chunk, /<a href="([^"]+)"/),
thumb: pick(chunk, /<img[^>]+src="([^"]+)"/),
date: clean(pick(chunk, /<div class="newnime">([\s\S]*?)<\/div>/))
};
return type === 'ongoing' ? { ...item, episode: epz, day: tipe } : { ...item, episodes: epz, score: tipe };
});
}
function parseHome(html) {
const idx = html.indexOf('Complete Anime</h1>');
return {
ongoing: parseCards(idx >= 0 ? html.slice(0, idx) : html, 'ongoing'),
complete: parseCards(idx >= 0 ? html.slice(idx) : '', 'complete')
};
}
function parseSearch(html) {
return [...html.matchAll(/<li[^>]*>\s*<img[^>]+src="([^"]+)"[^>]*>\s*<h2><a href="([^"]+)"[^>]*>([\s\S]*?)<\/a><\/h2>([\s\S]*?)<\/li>/g)].map(m => {
const info = {};
for (const s of m[4].matchAll(/<div class="set"><b>([^<]+)<\/b>\s*:?\s*([\s\S]*?)<\/div>/g)) {
info[clean(s[1]).toLowerCase()] = clean(s[2]).replace(/^:\s*/, '');
}
return { title: clean(m[3]), url: m[2], thumb: m[1], ...info };
});
}
function parseDetail(html) {
const info = {};
for (const m of html.matchAll(/<p[^>]*>\s*<span[^>]*>\s*<b>([^<]+)<\/b>\s*:\s*([\s\S]*?)<\/span>\s*<\/p>/g)) {
info[clean(m[1]).toLowerCase()] = clean(m[2]);
}
const start = html.search(/class=["']episodelist["']/);
const area = start >= 0 ? html.slice(start) : html;
const seen = new Set(), episodes = [];
for (const m of area.matchAll(/<a[^>]+href="([^"]*\/episode\/[^"]*)"[^>]*>([\s\S]*?)<\/a>(?:\s*<\/span>\s*<span[^>]*>([\s\S]*?)<\/span>)?/g)) {
const title = clean(m[2]);
if (!title || seen.has(m[1])) continue;
seen.add(m[1]);
episodes.push({ title, url: m[1], date: clean(m[3]) });
}
const num = e => e.title.match(/episode\s*(\d+)/i)?.[1] * 1 || null;
episodes.sort((a, b) => {
const na = num(a), nb = num(b);
return na !== null && nb !== null ? na - nb : 0;
});
const imgTag = pick(html, /(<img[^>]+wp-post-image[^>]*>)/);
return {
thumb: pick(html, /<meta property="og:image" content="([^"]+)"/) || pick(imgTag, /src="([^"]+)"/),
...info,
sinopsis: clean(pick(html, /<div class="sinopc">([\s\S]*?)<\/div>/)) || decode(pick(html, /<meta property="og:description" content="([^"]*)"/)),
batch: pick(html, /href="([^"]*\/batch\/[^"]*)"/),
episodes
};
}
function parseEpisode(html) {
const start = html.search(/class=["']download["']/);
const part = start >= 0 ? html.slice(start) : html;
const downloads = [...part.matchAll(/<li[^>]*>\s*<strong[^>]*>([\s\S]*?)<\/strong>([\s\S]*?)<\/li>/g)]
.map(m => ({
quality: clean(m[1]),
size: clean(pick(m[2], /<i[^>]*>([\s\S]*?)<\/i>/)),
links: [...m[2].matchAll(/<a[^>]+href="([^"]+)"[^>]*>([\s\S]*?)<\/a>/g)]
.map(a => ({ host: clean(a[2]), url: decode(a[1]) }))
}))
.filter(x => x.links.length);
const links = [];
if (!downloads.length) {
const seen = new Set();
for (const a of html.matchAll(/<a[^>]+href="([^"]+)"[^>]*>([\s\S]*?)<\/a>/g)) {
const url = decode(a[1]);
if (seen.has(url)) continue;
seen.add(url);
links.push({ host: clean(a[2]), url });
}
}
return {
title: clean(pick(html, /<h1[^>]*>([\s\S]*?)<\/h1>/)),
stream: pick(html, /<iframe[^>]+src="([^"]+)"/),
downloads,
links
};
}
async function getHtml(url) {
const res = await fetch(url, {
headers: {
'User-Agent': USER_AGENT,
Accept: 'text/html,application/xhtml+xml',
'Accept-Language': 'id-ID,id;q=0.9,en;q=0.8',
Referer: `${ORIGIN}/`
}
});
if (!res.ok) throw new Error(`HTTP ${res.status}`);
return await res.text();
}
async function pool(items, limit, fn) {
const out = new Array(items.length);
let i = 0;
await Promise.all(Array.from({ length: Math.min(limit, items.length) }, async () => {
while (i < items.length) {
const idx = i++;
try {
out[idx] = await fn(items[idx]);
} catch (err) {
out[idx] = { ...items[idx], error: err.message };
}
}
}));
return out;
}
async function episodeLinks(url) {
const html = await getHtml(url);
const page = parseEpisode(html);
let debug;
if (!page.downloads.length && !page.links.length) {
debug = dump(`episode_debug_${pick(url, /\/episode\/([^/]+)/) || 'x'}.html`, html);
}
return { title: page.title, stream: page.stream, downloads: page.downloads, links: page.links, debug };
}
async function animeLinks(url) {
const html = await getHtml(url);
const detail = parseDetail(html);
let debug;
if (!detail.episodes.length) debug = dump('detail_debug.html', html);
const episodes = await pool(detail.episodes, 3, async ep => {
const r = await episodeLinks(ep.url);
const out = { title: ep.title, date: ep.date, url: ep.url, stream: r.stream, downloads: r.downloads };
if (r.links.length) out.links = r.links;
if (r.debug) out.debug = r.debug;
return out;
});
return {
title: detail.judul,
status: detail.status,
skor: detail.skor,
genre: detail.genre,
thumb: detail.thumb,
sinopsis: detail.sinopsis,
batch: detail.batch || undefined,
debug,
episodes
};
}
async function otakudesu(action, query = '') {
action = String(action || '').toLowerCase();
query = String(query || '').trim();
switch (action) {
case 'home':
return parseHome(await getHtml(`${ORIGIN}/`));
case 'search':
if (!query) throw new Error('Masukkan judul anime!');
return parseSearch(await getHtml(`${ORIGIN}/?s=${encodeURIComponent(query)}&post_type=anime`));
case 'detail':
if (!query) throw new Error('Masukkan URL detail anime!');
return await animeLinks(query);
case 'episode':
if (!query) throw new Error('Masukkan URL episode!');
return await episodeLinks(query);
case 'ongoing':
return parseCards(await getHtml(`${ORIGIN}/ongoing-anime/`), 'ongoing');
case 'complete':
return parseCards(await getHtml(`${ORIGIN}/complete-anime/`), 'complete');
default:
throw new Error(`Command '${action}' tidak ditemukan.`);
}
}
module.exports = { otakudesu, episodeLinks, animeLinks };
(async () => {
const { otakudesu } = require('./otakudesu');
try {
const result = await otakudesu('search', 'naruto');
console.log(JSON.stringify({
creator: 't.me/luyatiem',
status: true,
command: 'search',
data: result
}, null, 2));
} catch (error) {
console.log(JSON.stringify({
creator: 't.me/luyatiem',
status: false,
error: error.message
}, null, 2));
}
})();
Cx99 • 6 views
Tools
JavaScript
Mencari Preset Alight Motion dari URL TikTok
/**
* Judul : Finder Preset AM
* Base URL : https://amfinder.web.id
* Author : Cx99 - t.me/exploit99
* Deskripsi : Mencari Preset Alight Motion dari URL TikTok
* Channel : https://whatsapp.com/channel/0029VbCSF8sA89MopCVOYW06
*/
const BASE = 'https://amfinder.web.id';
const UA = 'Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Mobile Safari/537.36';
async function amfinder(targetUrl) {
try {
if (!targetUrl) return { status: false, message: 'URL tidak boleh kosong!' };
const apiUrl = `${BASE}/api/find?url=${encodeURIComponent(targetUrl.trim())}&bat=80&chg=1`;
const headers = {
accept: 'text/event-stream',
'accept-language': 'id-ID,id;q=0.9,en-US;q=0.8,en;q=0.7',
referer: `${BASE}/`,
'user-agent': UA
};
const res = await fetch(apiUrl, { headers });
if (!res.ok) throw new Error(`HTTP ${res.status}`);
if (!res.body) throw new Error('Tidak ada response body');
const reader = res.body.getReader();
const decoder = new TextDecoder();
let buffer = '';
let finalResult = null;
while (true) {
const { done, value } = await reader.read();
if (done) break;
buffer += decoder.decode(value, { stream: true });
const parts = buffer.split('\n\n');
buffer = parts.pop() || '';
for (const part of parts) {
const line = part.split('\n').find(l => l.startsWith('data:'));
if (!line) continue;
try {
const parsed = JSON.parse(line.slice(5).trim());
if (parsed && typeof parsed === 'object' && 'ok' in parsed) finalResult = parsed;
} catch {}
}
}
if (!finalResult) return { status: false, message: 'Tidak ada hasil akhir diterima.' };
return finalResult;
} catch (error) {
return { status: false, message: error.message };
}
}
module.exports = { amfinder };
(async () => {
const { amfinder } = require('./amfinder');
const result = await amfinder('https://vt.tiktok.com/xxxxxxxx/');
console.log(JSON.stringify(result, null, 2));
})();
Cx99 • 9 views
Berbagi Snippet Kode
Menyediakan repositori kode siap pakai untuk berbagai kebutuhan pengembangan perangkat lunak.
Tampilan Neo-Brutalism
Setiap potongan kode disajikan dengan gaya tegas, kontras, dan mudah dibaca.
Pencarian Fleksibel
Pengguna dapat mencari kode berdasarkan judul, tag, bahasa pemrograman, maupun kategori.
Permintaan Kode Terbuka
Membutuhkan solusi atau implementasi fungsi tertentu? Ajukan ide melalui formulir request.