Skip to content

Instantly share code, notes, and snippets.

async function spotifydl(url) {
return new Promise(async (resolve, reject) => {
try {
const yanzz = await axios.get(
`https://api.fabdl.com/spotify/get?url=${encodeURIComponent(url)}`,
{
headers: {
accept: "application/json, text/plain, */*"
},
}
async function fetchTeraBoxData(teraboxUrl) {
const baseUrl = 'https://teradownloadr.com/wp-admin/admin-ajax.php'
const homeUrl = 'https://teradownloadr.com/'
try {
const homeResponse = await fetch(homeUrl)
const homeText = await homeResponse.text()
const nonceMatch = homeText.match(/"nonce":"(.*?)"/)
const nonce = nonceMatch ? nonceMatch[1] : null
if (!nonce) throw new Error('Nonce tidak ditemukan')