1.2.0 • Published 5 years ago
@feizheng/next-spider-fetch v1.2.0
next-spider-fetch
Fetch special for spider.
installation
npm install -S @feizheng/next-spider-fetchusage
import '@feizheng/next-spider-fetch';
nx.spiderFetch('https://api.github.com/users/afeiship').then(res=>res.json()).then(res=>{
console.log(res);
});options
| name | type | description |
|---|---|---|
| timeout | Number | Timeout for fetch. |
| delay | Number | Request with delay. |
| proxy | String | Set proxy for request. |
| debug | Boolean | If debug the options. |
license
Code released under the MIT license.