youtube-channel-video-fetcher
v0.1.1
Published
Fetch video informations from a Youtube Channel without official API
Downloads
1
Readme
Youtube Channel Video Fetcher
This module allows you to retrieve all video informations from a channel without using official Youtube API.
Install
npm install --save youtube-channel-video-fetcher
Table of contents
Cheat Sheet
const YoutubeChannel = require('youtube-channel-video-fetcher');
Fetch videos
const YoutubeChannel = new YoutubeChannel('channelId');
const scrapeChannel = (continuation) => {
return new Promise((resolve, reject) => {
YoutubeChannel.getVideo(continuation).then(function(videos) {
if(videos.continuation !== 0) {
resolve(scrapeChannel(videos.continuation));
}
console.log(posts);
});
});
};
scrapeChannel();
More examples in async/await
To see more examples, click here
Configuration
| Param | Type | Default | Description | | --- | --- | --- | --- | | channelId | String | Empty | Channel id or username|
License
The MIT License (MIT)
Copyright (c) 2018 Kakulukian