Downloader Media
Usage
🎗 TIKTOK
const { ttdl } = require('ruhend-scraper')
const url = 'https://vt.tiktok.com/xxxx'
let { title, author, username, published, like, comment, share, views, bookmark, video, cover, duration, music, profilePicture } = await ttdl(url);
or
let data = await ttdl(url)
console.log(data)
🎗 YTMP3
const { ytmp3, ytmp3v2, ytmp3v3 } = require('ruhend-scraper')
const data = await ytmp3('your youtube url')
console.log(data)
const data2 = await ytmp3v2('your youtube url')
console.log(data2)
const data3 = await ytmp3v3('your youtube url')
console.log(data3)
🎗 YTMP4
const { ytmp4, ytmp4v2, ytmp4v3, ytmp4v4 } = require('ruhend-scraper')
const data = await ytmp4('your youtube url')
console.log(data)
const data2 = await ytmp4v2('your youtube url')
console.log(data2)
const data3 = await ytmp4v3('your youtube url')
console.log(data3)
const data4 = await ytmp4v4('your youtube url')
console.log(data4)
🎗 INSTAGRAM
const { igdl } = require('ruhend-scraper')
const text = "link instagram"
let res = await igdl(text);
let data = await res.data;
console.log(res);
for (let media of data) {
await new Promise(resolve => setTimeout(resolve, 2000));
console.log(media.url)
}
🎗 FACEBOOK
const { fbdl } = require('ruhend-scraper')
const text = "link Facebook"
let res = await fbdl(text);
let data = await res.data;
console.log(rer);
console.log(data);
🎗 YOUTUBE SEARCH
const { ytsearch } = require('ruhend-scraper')
const text = "link youtube , title or something that u wanna search "
let { video, channel } = await ytsearch(text)
let teks = [...video, ...
channel
].map(v => {
switch (v.type) {
case 'video':
return `
${javi} *${v.title}*
${java} *${v.url}*
${java} Duration: ${v.durationH}
${java} Uploaded ${v.publishedTime}
${java} ${v.view} views`.trim()
case 'channel':
return `
╭──────━• *CHANNEL*
│🎀 *${v.channelName}*
│🔗 *${v.url}*
│📛 _${v.subscriberH} Subscriber_
│🎥 ${v.videoCount} video
┗──────━•`.trim()
}
}).filter(v => v).join(
'\n\n─────────────━─────────────\n\n'
)
console.log(teks)