1.0.2 • Published 6 years ago

yandex-xml v1.0.2

Weekly downloads
2
License
ISC
Repository
github
Last release
6 years ago

Yandex.XML API Wrapper

ES6 Interface for Yandex XML search

Installation

$ npm install yandex-xml

Usage

ya.search(options)

Example

const YandexXML = require('yandex-xml');
const ya = new YandexXML('<USERNAME>', '<KEY>');
const res = await ya.search({ query: '<QUERY>' });

res.forEach((el, i, arr) => {
    console.log(`${el.url} ${el.domain} ${el.title}`);
});

Options

All options in the official documentation here.