limit-request-promise

http request for web scraping

Stats

StarsIssuesVersionUpdatedCreatedSize
limit-request-promise
500.1.25 years ago7 years agoMinified + gzip package size for limit-request-promise in KB

Readme

node-limit-request-promise

http request for web scraping

note

This library implements based on request-promise

example

var LimitRequestPromise = require('limit-request-promise');
var lp = new LimitRequestPromise(1,1); // option = default limit
// register database
lr.setup([
{
    host:'http://www.example.com',max:1000,sec:60
}
]);
lp.req('http://www.yahoo.co.jp').then(console.log); // immediately
lp.req('http://www.yahoo.co.jp').then(console.log); // next timing
lp.req({url:'http://www.google.com'}).then(console.log); // immediately 
lp.req({url:'http://www.google.com'}).then(console.log); // next timing

license

MIT

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.