scraperama

0.0.4 • Public • Published

scraperama

Scrape html, csv, json files from the internet.

Installation

npm i scraperama -S

Usage

const scraperama = require("scraperama");

scraperama.csv("file.csv", json => {
  console.log(json);
});

scraperama.html("file.html", $ => {
  console.log($("body").html());
});

scraperama.json("file.json", json => {
  console.log(json);
});

To get an object's file size:

scraperama.filesize(object);

To throttle a function:

const logThrottled = scraperama.throttle(console.log, 500);
Array.from({ length: 10 }).forEach((_, i) => logThrottled(i));

Keywords

Install

npm i scraperama

DownloadsWeekly Downloads

3

Version

0.0.4

License

MIT

Unpacked Size

5.31 kB

Total Files

18

Last publish

Collaborators

  • harrystevens