1.0.6 • Published 2 years ago

ts-website-scrapper v1.0.6

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years 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

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago