Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@citoyasha/yt-search

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@citoyasha/yt-search

Youtube Crawler with no API that returns 3 first videos.

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
9
increased by28.57%
Maintainers
1
Weekly downloads
 
Created
Source

Youtube Crawler with no API that returns 3 first videos by default.

Install

npm i @citoyasha/yt-search

Usage

yt.search(search_term) //returns the first 3 videos
yt.search(search_term, nb) //returns nb videos
const yt = require('@citoyasha/yt_search');
let query = "Tunisia88";
yt.search(query, 10)
.then(function(result) {
//result returns the first 10 videos
});

Returns

[
  {
    id: 'pRpeEdMmmQ0',
    title: 'Shakira - Waka Waka (This Time for Africa) (The Official 2010 FIFA World Cup™ Song)',
    time: '3:31',
    link: 'https://www.youtube.com/watch?v=pRpeEdMmmQ0',
    thumbnail: 'https://i.ytimg.com/vi/pRpeEdMmmQ0/hqdefault.jpg'
  },
  {
    id: '1zacYmrdexA',
    title: 'Waka Waka (This Time for Africa) - Shakira (Lyrics) 🎵',
    time: '4:02',
    link: 'https://www.youtube.com/watch?v=1zacYmrdexA',
    thumbnail: 'https://i.ytimg.com/vi/1zacYmrdexA/hqdefault.jpg'
  },
  {
    id: 'gVfgTw_W_JY',
    title: 'Just Dance 2018 • Waka Waka (Football Version)',
    time: '3:59',
    link: 'https://www.youtube.com/watch?v=gVfgTw_W_JY',
    thumbnail: 'https://i.ytimg.com/vi/gVfgTw_W_JY/hqdefault.jpg'
  }
]

Keywords

FAQs

Package last updated on 04 May 2021

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc