This module allows you to retrieve all video informations from a channel without using official Youtube API.
npm install --save youtube-channel-video-fetcher
const YoutubeChannel = require('youtube-channel-video-fetcher');
const YoutubeChannel = new YoutubeChannel('channelId');
const scrapeChannel = (continuation) => {
return new Promise((resolve, reject) => {
YoutubeChannel.getVideo(continuation).then(function(videos) {
if(videos.continuation) {
resolve(scrapeChannel(videos.continuation));
}
console.log(posts);
});
});
};
scrapeChannel();
To see more examples, click here
Param | Type | Default | Description |
---|---|---|---|
channelId | String |
Empty | Channel id or username |
The MIT License (MIT)
Copyright (c) 2018 Kakulukian