Socket
Socket
Sign inDemoInstall

deru-yandex-images

Package Overview
Dependencies
7
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    deru-yandex-images

yandex images api


Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Install size
484 kB
Created
Weekly downloads
 

Readme

Source

yandex-images-api

Becouse official yandex images api does not exists, i wrote parser for yandex images.

(parser can work unstable, becouse yandex periodically usage captca for checking requests)

Installation

npm i deru-yandex-images --save

How Usage?

Import plugin with module or require type.

import ImageParser from 'deru-yandex-images';

or

require ImageParser = require('deru-yandex-images');

Use new instance of Parser:

(Promise format)

new ImageParser({ params })
    .getImages()
    .then(res => console.log(res))
    .catch(err => console.error(err));

(async await format)

try {
    const images = await new ImageParser({ params }).getImages();

    console.log(images);
} catch (err) {
    console.error(err);
}
/**
 * return Object
 * 
 * example:
 * {
 *  items: ['image1.png', 'image2.png'],
 *  page: 1
 * }
 */

Params

ProptypeDescription
textStringValue for search
countNumberCount of returned images
pageNumberPage number
pageRangeNumberSet random page of range 1-pageRange

Keywords

FAQs

Last updated on 21 Dec 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc