9.0.1 • Published 2 months ago

ruhend-scraper v9.0.1

Weekly downloads
-
License
ISC
Repository
github
Last release
2 months ago

Downloader Media

Usage

šŸŽ— TIKTOK

const { ttdl } = require('ruhend-scraper')
import { ttdl } from 'ruhend-scraper'

const url = 'https://vt.tiktok.com/xxxx'
let { title, author, username, published, like, comment, share, views, bookmark, video, cover, music, profilePicture } = await ttdl(url);
or
let data = await ttdl(url)
console.log(data)
/*
results JSON
{ title, author, username, published, like, comment, share, views, bookmark, video, cover, music, profilePicture }
*/

šŸŽ— YTMP3

const { ytmp3 } = require('ruhend-scraper')
import { ytmp3 } from 'ruhend-scraper'

const url = 'youtube link'
const { title, audio, author, description, duration, views, upload, thumbnail } = await ytmp3(url);
or 
const data = await ytmp3(url)
return data or console.log(data)

šŸŽ— YTMP4

const { ytmp4 } = require('ruhend-scraper')
import { ytmp4 } from 'ruhend-scraper'

const url = 'youtube link'
const { title, audio, author, description, duration, views, upload, thumbnail } = await ytmp4(url);
or 
const data = await ytmp4(url)
return data or console.log(data)

šŸŽ— INSTAGRAM

const { igdl } = require('ruhend-scraper')
import { igdl } from 'ruhend-scraper'
const text = "link instagram" //https://instagram.com/xxxxxxx

let res = await igdl(text);
let data = await res.data;
console.log(res);
   for (let media of data) {
      new Promise(resolve => setTimeout(resolve, 2000));
      console.log(media.url)
      /* media.url is or are link of videos or images that just one by one
       * or do something with your project
       */
   }

šŸŽ— FACEBOOK

const { fbdl } = require('ruhend-scraper')
import { fbdl } from 'ruhend-scraper'
const text = "link Facebook" //https://Facebook.com/xxxxxxx

let res = await fbdl(text);
let data = await res.data;
console.log(rer); 
//or
console.log(data); 
   

šŸŽ— YOUTUBE SEARCH

   const { ytsearch } = require('ruhend-scraper')
   import { ytsearch } from 'ruhend-scraper'
   const text = "link youtube , title or something that u wanna search " //https://instagram.com/xxxxxxx

   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)
8.0.8

4 months ago

8.0.5

5 months ago

8.0.4

5 months ago

8.0.7

4 months ago

8.0.6

4 months ago

8.1.0

3 months ago

8.3.0

2 months ago

8.2.0

2 months ago

8.1.1

3 months ago

9.0.1

2 months ago

9.0.0

2 months ago

8.0.3

7 months ago

8.0.1

7 months ago

8.0.0

8 months ago

8.0.2

7 months ago

7.0.6

9 months ago

7.0.5

9 months ago

5.3.0

10 months ago

5.2.1

10 months ago

5.2.0

10 months ago

5.0.2

10 months ago

5.1.0

10 months ago

5.0.1

10 months ago

5.0.0

10 months ago

6.0.1

10 months ago

6.0.0

10 months ago

6.0.3

10 months ago

6.0.2

10 months ago

4.0.3

10 months ago

4.0.2

11 months ago

7.0.0

10 months ago

7.0.4

10 months ago

7.0.3

10 months ago

7.0.2

10 months ago

7.0.1

10 months ago

4.0.1

12 months ago