usetube-improved
v1.2.0
Published
crawl youtube with scraperapi without a YouTube api key (search videos, search channels, get all channel/playlist's videos)
Downloads
11
Maintainers
Readme
usetube-improved
Production-ready integrated with the most used scrapper scrapper-api so you can scrape YouTube data without any issues of getting blocked.
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')