Socket
Socket
Sign inDemoInstall

usetube-improved

Package Overview
Dependencies
3
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    usetube-improved

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


Version published
Weekly downloads
16
increased by700%
Maintainers
1
Install size
4.41 MB
Created
Weekly downloads
 

Readme

Source

usetube-improved

Production-ready integrated with the most used scrapper scrapper-api so you can scrape YouTube data without any issues of getting blocked.

image info

providers

scraperapi = https://www.scraperapi.com (SOON) ScrapeBee = https://www.scrapingbee.com/

install

npm install usetube-improved

Working example

const usetube = require('usetube-improved');

const data = await usetube.searchVideo('hello world', 'api-key-123');

console.log(data);

Usage

// Example
await searchVideo(terms, api_key, token)
await searchVideo('awesome cats', 'cool-api-123')

// Example
await searchChannel(terms, api_key, token)
await searchChannel('FinanceChannel123', 'cool-api-123')

// Example
await getChannelVideos(channel_id, api_key, published_after)
await getChannelVideos('UCkHja3RPRoq3e_YNp1IEyEA', 'cool-api-123', new Date())

// Example
await getPlaylistVideos(playlist_id, api_key)
await getPlaylistVideos('RDQMgEzdN5RuCXE', 'cool-api-123')

// Example
await getChannelDesc(channel_id, api_key)
await getChannelDesc('UCkHja3RPRoq3e_YNp1IEyEA', 'cool-api-123')

// Example
await getVideoDesc(video_id, api_key)
await getVideoDesc('a9xHJjMxQ8', 'cool-api-123')

// Example
await getVideoDate(video_id, api_key)
await getVideoDate('a9xHJjMxQ8', 'cool-api-123')

// Example
await getVideosFromDesc(video_id, api_key)
await getVideosFromDesc('a9xHJjMxQ8', 'cool-api-123')

Keywords

FAQs

Last updated on 31 Jan 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc