JSPM

yandex-xml

1.0.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q27085F
  • License ISC

Yandex.XML API

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.