1.2.0 • Published 3 years ago

usetube-improved v1.2.0

Weekly downloads
22
License
AGPL-3.0-or-later
Repository
github
Last release
3 years ago

usetube-improved

Production-ready integrated with the most used scrapper scrapper-api so you can scrape YouTube data without any issues of getting blocked.

image info

providers

scraperapi = https://www.scraperapi.com (SOON) ScrapeBee = https://www.scrapingbee.com/

install

npm install usetube-improved

Working example

const usetube = require('usetube-improved');

const data = await usetube.searchVideo('hello world', 'api-key-123');

console.log(data);

Usage

// Example
await searchVideo(terms, api_key, token)
await searchVideo('awesome cats', 'cool-api-123')

// Example
await searchChannel(terms, api_key, token)
await searchChannel('FinanceChannel123', 'cool-api-123')

// Example
await getChannelVideos(channel_id, api_key, published_after)
await getChannelVideos('UCkHja3RPRoq3e_YNp1IEyEA', 'cool-api-123', new Date())

// Example
await getPlaylistVideos(playlist_id, api_key)
await getPlaylistVideos('RDQMgEzdN5RuCXE', 'cool-api-123')

// Example
await getChannelDesc(channel_id, api_key)
await getChannelDesc('UCkHja3RPRoq3e_YNp1IEyEA', 'cool-api-123')

// Example
await getVideoDesc(video_id, api_key)
await getVideoDesc('a9xHJjMxQ8', 'cool-api-123')

// Example
await getVideoDate(video_id, api_key)
await getVideoDate('a9xHJjMxQ8', 'cool-api-123')

// Example
await getVideosFromDesc(video_id, api_key)
await getVideosFromDesc('a9xHJjMxQ8', 'cool-api-123')