scraperjavascript5125
JulzPreset Finder - Alight Motion Preset Scraper (5MB & XML)
Scraper dan extractor link preset Alight Motion (5MB dan XML) dari TikTok, YouTube Shorts, dan Instagram. Dilengkapi auto-bypass gateway 403 via autentikasi header X-API-Key / X-AM-Key, ekstraksi deskripsi, bio, bio link, komentar teratas, dan balasan komentar.
Vamz Spectre15 Okt 2026172 baris kode
Jalankan via Terminal / CLI:
# 1. Download file script
curl -sL "https://code.vamxapi.my.id/snippet/raw/julzpreset-finder" -o julzpreset-finder.js
# 2. Jalankan script
node julzpreset-finder.js
Dependencies npm yang Dibutuhkan:
npm install none (pure Node.js 18+)Panduan Penggunaan:
curl -sL "https://code.vamxapi.my.id/snippet/raw/julzpreset-finder" -o julzpreset-finder.js node julzpreset-finder.js "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
julzpreset-finder.js(172 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
/**
* JulzPreset Finder - Alight Motion Preset (5MB & XML) Scraper & Link Extractor
* Author: Vamz Spectre (VamxAPI)
* Target: https://julzpreset-finder.vercel.app
*
* Download & Run:
* curl -sL "https://code.vamxapi.my.id/snippet/raw/julzpreset-finder" -o julzpreset-finder.js
* node julzpreset-finder.js "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
*
* Features:
* - Auto Bypass Gateway 403 Forbidden with reverse-engineered X-API-Key / X-AM-Key authentication header
* - Multi-Platform Support: TikTok (Video/Photo), YouTube & Shorts, Instagram (Reel/Post)
* - Deep Inspection: Scans post description, creator bio, bio links, top comments, and comment replies
* - Preset Detection: Extracts Alight Motion 5MB (alight.link / alightcreative.com) & XML files (Google Drive, MediaFire, etc.)
* - Full Metadata: Returns video cover/poster, play statistics, creator details, scan statistics, and preset list
* - Pure Node.js 18+ (Zero External Dependencies)
*/
const BASE_URL = 'https://julzpreset-finder.vercel.app';
const API_KEY = 'julzpreset';
/**
* Extract first URL found in an arbitrary input string
* @param {string} text
* @returns {string}
*/
function extractUrl(text) {
if (!text) return '';
const match = text.match(/https?:\/\/[^\s"'<>\)]+/i);
return match ? match[0] : text.trim();
}
/**
* Scrape Alight Motion Presets using JulzPreset Finder API Engine
* @param {string} inputUrl
* @param {object} options
* @returns {Promise<object>}
*/
async function julzPresetFinder(inputUrl, options = {}) {
const targetUrl = extractUrl(inputUrl);
if (!targetUrl) {
throw new Error('URL input tidak valid. Masukkan URL TikTok, YouTube, atau Instagram.');
}
const endpoint = `${BASE_URL}/api/find?url=${encodeURIComponent(targetUrl)}`;
const timeoutMs = options.timeout || 45000;
const controller = new AbortController();
const timer = setTimeout(() => controller.abort(), timeoutMs);
try {
const res = await fetch(endpoint, {
method: 'GET',
headers: {
'Accept': 'application/json, text/plain, */*',
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36',
'X-API-Key': API_KEY,
'X-AM-Key': API_KEY,
'Referer': `${BASE_URL}/`,
'Origin': BASE_URL
},
signal: controller.signal
});
clearTimeout(timer);
const rawText = await res.text();
let data;
try {
data = JSON.parse(rawText);
} catch {
throw new Error(`Gagal mem-parsing respon API (Status ${res.status}): ${rawText.slice(0, 100)}`);
}
if (!data.ok) {
throw new Error(data.error || 'Gagal mencari preset pada URL yang diberikan.');
}
const { video = {}, author = {}, scanned = {}, presets = [] } = data;
return {
status: true,
platform: video.platform || 'unknown',
videoId: data.videoId || video.id || null,
video: {
id: video.id || null,
url: video.url || targetUrl,
title: video.title || null,
description: video.description || null,
cover: video.cover || null,
src: video.src || null,
duration: video.duration || null,
isVertical: Boolean(video.vertical),
views: typeof video.views === 'number' ? video.views : null,
likes: typeof video.likes === 'number' ? video.likes : null,
comments: typeof video.comments === 'number' ? video.comments : null,
createTime: video.createTime || null
},
author: {
uniqueId: author.uniqueId || null,
nickname: author.nickname || null,
avatar: author.avatar || null,
bio: author.bio || null,
followersOrSubs: author.subs || null
},
scanned: {
comments: scanned.comments || 0,
replies: scanned.replies || 0
},
totalPresets: presets.length,
presets: presets.map(p => ({
type: p.type || (p.url && /alight\.link/i.test(p.url) ? '5mb' : 'xml'),
url: p.url,
title: p.title || (p.type === '5mb' ? 'Preset Alight Motion 5MB' : 'Preset XML'),
size: p.size || null,
detail: p.detail || null,
source: p.source || 'unknown',
byAuthor: Boolean(p.byAuthor),
pinned: Boolean(p.pinned),
thumb: p.thumb || null
}))
};
} catch (err) {
clearTimeout(timer);
if (err.name === 'AbortError') {
throw new Error('Permintaan time out. Pemeriksaan komentar dan bio memakan waktu terlalu lama.');
}
throw err;
}
}
// CLI Execution Support
if (require.main === module) {
const inputArg = process.argv[2];
if (!inputArg) {
console.error(
JSON.stringify(
{
status: false,
error: 'Parameter URL belum diisi.',
usage: 'node julzpreset-finder.js "<URL_TIKTOK_YOUTUBE_INSTAGRAM>"',
example: 'node julzpreset-finder.js "https://www.youtube.com/watch?v=dQw4w9WgXcQ"'
},
null,
2
)
);
process.exit(1);
}
julzPresetFinder(inputArg)
.then(result => {
console.log(JSON.stringify(result, null, 2));
process.exit(0);
})
.catch(err => {
console.error(
JSON.stringify(
{
status: false,
error: err.message || String(err)
},
null,
2
)
);
process.exit(1);
});
}
module.exports = julzPresetFinder;