JSPM

  • Created
  • Published
  • Downloads 270
  • Score
    100M100P100Q90301F
  • License AGPL-3.0-or-later

crawl youtube without api key (search videos, search channels, get all channel/playlist's videos)

Package Exports

  • usetube

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (usetube) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Usetube.js

Version Downloads Downloads

with usetube you Crawl youtube so you can search videos or channels, you can also grab all channel's videos at once

This script is google api key free (so you don't need google account)

This script is google Quota free (you can retrieve all videos a channel can give you)


install

npm install usetube

usage

const usetube = require('usetube')
usetube.getPlaylistVideos('PLKuN-WEIzl_pwo3US7XyZJe1oVCD7NLwF').then(videos => { console.log(videos) })

types definitions

searchVideo(terms: String!, token: String?): [video], didyoumean, token

searchChannel(terms: String!, token: String?): [channel], didyoumean, token

getChannelVideos(channel_id: String!, published_after: Date?): [video]

getPlaylistVideos(playlist_id: String!): [video]

getChannelDesc(channel_id: String!): String

getVideoDesc(video_id: String!): String

getVideoDate(video_id: String!): Date

getVideosFromDesc(video_id: String!): [video]
video {
  id:                    String(11),
  original_title:        String,
  title:                 String,
  artist:                String,
  duration:              Int,
  publishedAt:           Date,
}
channel {
  name:                  String,
  channel_id:            String,
  nb_videos:             Int,
  nb_subscriber:         Int,
  official:              Boolean,
  channel_avatar_small:  String,
  channel_avatar_medium: String,
}
didyoumean:              String, // spelling proposal
token:                   String, // key to get more data (next/prev page result)