Skip to content
This repository has been archived by the owner on Sep 26, 2020. It is now read-only.

Fetch video informations from a Youtube Channel without official API

License

Notifications You must be signed in to change notification settings

Kakulukian/youtube-channel-video-fetcher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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) {
                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

About

Fetch video informations from a Youtube Channel without official API

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published