/* besok aja ( SeBerryLW ) */ /* url : tiktok.com */ /* toktok stalk */ /* cara mahu pakai : node namafile.js puan_maharaniri */ const axios = require('axios'); const bentar_ngambil_dulu = async (input_le) => { const cukuruk = `${Math.floor(Math.random() * 255) + 1}.${Math.floor(Math.random() * 255) + 1}.${Math.floor(Math.random() * 255) + 1}.${Math.floor(Math.random() * 255) + 1}`; const prikitiww = 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36'; try { const url = `https://www.tiktok.com/@${input_le}`; const headers = { 'User-Agent': prikitiww, 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8', 'Accept-Language': 'en-US,en;q=0.5', 'Accept-Encoding': 'gzip, deflate, br', 'DNT': '1', 'Connection': 'keep-alive', 'Upgrade-Insecure-Requests': '1', 'Sec-Fetch-Dest': 'document', 'Sec-Fetch-Mode': 'navigate', 'Sec-Fetch-Site': 'none', 'Cache-Control': 'max-age=0', 'X-Forwarded-For': cukuruk, 'X-Real-IP': cukuruk, }; console.log('Kejap...'); const response = await axios.get(url, { headers, timeout: 10000 }); const html_content = response.data; if (!html_content) { console.log('struktur web toktok mungkin berubah'); return null; } const universal_data_pattern = /