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));