simple-throttler-http
v1.0.1
Published
Throttle http requests so they don't run too often. Useful for scraping websites ;)
Downloads
3
Readme
simple-throttler-http
What it is
A simple utility that lets you make lots of http requests, with at least a certain delay between each other.
Usage
var HttpThrottler = require("simple-throttler-http");
var http = HttpThrottler(2500);
http.get("https://duckduckgo.com/").then(console.log);
http.get("https://mozilla.org/").then(console.log); //will fetch after 2.5s
http.get("https://f-droid.org/").then(console.log); //will fetch after 5s