1.0.6 • Published 10 months ago

ts-website-scrapper v1.0.6

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

TypeScript-based Website scrapper

What is it?

This library allows you to parse websites.

How to use?

Here I show you example scrapSite usage:

import scrapSite from 'ts-website-scrapper';

scrapSite('https://en.wikipedia.org/wiki/Lorem_ipsum', 'h1').then(scrapper => {
  const header = scrapper.root.text();

  console.log(header);
});

ScrapResult

scrapper in previous example is typeof ScrapResult.

export interface ScrapResult {
  root: Cheerio;
  loader: Root;
}

loader is the same as JQuery`s $ function, but for Node server side.

See docs for Cheerio here.

1.0.2

10 months ago

1.0.1

11 months ago

1.0.0

11 months ago

1.0.6

10 months ago

1.0.5

10 months ago

1.0.4

10 months ago

1.0.3

10 months ago

0.0.9

1 year ago

0.0.8

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago