youtube-channel-video-fetcher

0.1.1 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i youtube-channel-video-fetcher

Weekly Downloads

0

Version

0.1.1

License

MIT

Unpacked Size

19.8 kB

Total Files

8

Last publish

Collaborators

  • kakulukian