Package Exports
- yandex-xml
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (yandex-xml) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
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.