Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/you21979/node-limit-request-promise


https://github.com/you21979/node-limit-request-promise

Last synced: 3 days ago
JSON representation

Awesome Lists containing this project

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