JSPM

kupujemprodajem

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q14494F
  • License ISC

Node module wrapper for kupujemprodajem.com website.

Package Exports

  • kupujemprodajem

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 (kupujemprodajem) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Kupujemprodajem Live

Modul koji "sluša" nove oglase na kupujemprodajem.com

API

const Kp = require('kupujemprodajem');
const kp = new Kp();

kp.on('data', (oglas) => {
    /*{
        ad_id: 87019458,
        ad_url: '/Bela-tehnika-i-kucni-aparati/...',
        name: 'Kamin Alfa-plam Rustik',
        thumbnail: 'photos/oglasi/8/....jpeg',
        price: '220,00 €',
        posted: '2019-11-27 22:23:27',
        currency: 'eur',
        lat: '44.3671910',
        lon: '20.9604515',
        location_id: 29,
        html: '\n' +...'
    }*/
});

Events

  • data - novi oglas.
  • error - ukoliko se desi neka greška.
  • connected - kada je konekcija uspostavljena.
  • disconnected - kada je konekcija prekinuta.