oto-scraper
v0.5.1-alpha-4
Published
multi scraper
Downloads
13
Maintainers
Readme
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
:
npm install oto-scraper --save
If use yarn
follow this command:
yarn add oto-scraper
Use
Once installed oto-scraper, you can follow this small example in your code:
//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)