1.0.2 • Published 4 years ago

raspa v1.0.2

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

raspa 🕵

Scrape web content.

Simple plugin to get html content with Puppeteer.

Install:

npm i raspa

Example of use:

import raspa from 'raspa'

raspa('https://www.youtube.com').then(html => {

  console.log(html); // print the content in console

})

The function returns a promise with the html content.


You can define the response size of the screen:

const config = {
  width: 1920,
  height: 1080,
  deviceScaleFactor: 1
}

raspa('https://www.youtube.com', config)
  .then(html => console.log(html));
1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago