1.0.3 • Published 4 years ago

youtube-scrap v1.0.3

Weekly downloads
-
License
MIT
Repository
-
Last release
4 years ago

Youtube-scrap

A youtube user info and feed scrapper using puppeteer.

Installation

yarn add youtube-scrap

Usage

const { fetchUserInfo } = require("youtube-scrap");

(async () => {
  try {
    let info = await fetchUserInfo("username", "user");
    console.log(info);
  } catch (err) {
    console.error(err);
  }
})();

result

{
  "id": "userid || channelid",
  "type": "user",
  "name": "user name",
  "desc": "description",
  "subscribers": "count of subs",
  "avatar": "https://yt3.ggpht.com/a/{avatar}",
  "location": "user country",
  "links": ["https://twitter.com/{username}"],
  "joined_at": "Nov 24, 2008",
  "total_views": "53,220,965 views"
}
1.0.2

4 years ago

1.0.3

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago