0.0.3 • Published 3 years ago

youtube-metadata-scraper v0.0.3

Weekly downloads
5
License
MIT
Repository
-
Last release
3 years ago

youtube-metadata-scraper

Install

// using yarn
yarn add youtube-metadata-scraper

// using npm
npm install youtube-metadata-scraper

Usage

Scraper

import { scrap } from 'youtube-metadata-scraper';

scrap('videoId') // pass the videoId
    .then((metadata) => console.log(metadata))
    .catch((error) => console.log(error));

Watcher

import { watch } from 'youtube-metadata-scraper';

watch(
    'videoId', // pass the videoId
    5, // the interval in seconds
    (metadata) => console.log(metadata), // the metadata callback
    (error) => console.log(error) // the error callback
);

Cli

Usage: youtube-metadata-scraper [options] [command]

Options:
  -h, --help                 display help for command

Commands:
  scrap <videoId>            scrap youtube metadata
  watch [options] <videoId>  watch youtube metadata
  help [command]             display help for command
0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago