casa-sapo-scrapper
TypeScript icon, indicating that this package has built-in type declarations

1.1.6 • Public • Published

casa-sapo-scrapper

This library exposes a runner that simplifies the process of scrapping data from https://casa.sapo.pt if you're interested in portugal real-estate data. Keep in mind the website contains dynamic data (it is built with Next.js) and some data might be hard to extract (or susceptive to transient failures). Note It is important to note that this library is framework agnostic but should always run on a node environment

Available in npm registry: https://www.npmjs.com/package/casa-sapo-scrapper

Getting started

PNPM

pnpm add casa-sapo-scrapper

NPM

npm i casa-sapo-scrapper

Yarn

yarn i casa-sapo-scrapper

Example

import { CasaSapoScrapper } from 'casa-sapo-scrapper';

const scrapper = new CasaSapoScrapper((row) => {
  console.log('I have a new row', row);
});

try {
  await scrapper.start();
} catch (ex) {
  // handle me
}

Logging

By default we inject a pino instance without any customization but you're able to pass your instance

Package Sidebar

Install

npm i casa-sapo-scrapper

Weekly Downloads

0

Version

1.1.6

License

MIT

Unpacked Size

980 kB

Total Files

29

Last publish

Collaborators

  • enigmadk