csite
v0.0.1
Published
crawler request tool
Downloads
5
Readme
Site
A crawler tool
Useage
npm install site
Example
const Site = require("site");
const zco = require("zco");
zco.brief(function*(){
let site=Site.new();
/**
see request :https://github.com/request/request
*/
let option={
"url":"https://www.baidu.com",
"method":"GET",
"headers":{
}
}
let {res,body}=yield site.request(option);
console.log(site.cookieStore.cookieStr());
//......
})((err)=>{
if(err){
console.log(err);
}
})