UNPKG

oto-scraper

Version:

multi scraper

32 lines (24 loc) 998 B
# **oto-scraper** **oto-scraper** is a simple and easy to use multi-content scraper, meaning it comes with a set of tools to get information from many preferred webpages. Unfortunately, at the moment only the YouTube search engine is available. ## Principal Tools - `.youtube_search()` This function does a detailed search on YouTube channels, videos, lives, playlists, and movies, and returns an object on arrays of the result. ## Instalación To install, open your command line and run the following command with `npm`: ```bash npm install oto-scraper --save ``` If use `yarn` follow this command: ```bash yarn add oto-scraper ``` ## Use Once installed **oto-scraper**, you can follow this small example in your code: ```javascript //type = "commonjs". const Scraper = require('oto-scraper'); //type = "module"; import Scraper from 'oto-scraper'; let scraper = new Scraper(); let data = await scraper.youtube_search("how to read lines?", {language: "es"}); console.log(data) ```