Files
bot_Tamiseur/utilsCrack/torrent.js
2023-05-28 02:55:30 +02:00

8 lines
303 B
JavaScript

module.exports = torrent = (async (url, headers) => {
let response = await fetch(url, { headers, body: null, method: "GET" }).catch(console.error)
try {
let body = await response.text()
let file = body.split('<a href="')[2].split('">')[0]
return file
} catch (error) { console.error(error) }
})