alsotang

Results 123 comments of alsotang

我看了下,都是小写啊 ?? > 在 2014年12月26日,00:44,Kevin [email protected] 写道: > > topicUrls.forEach(function(topicUrl) { > superagent.get(topicUrl) > .end(function(err, res) { > console.log('fetch ' + topicUrl + ' successful'); > ep.emit('topic_html', [topicUrl, res.Text]); >...

可能是实现变更了吧。当时这个输入也是直接复制出来的。老项目了。。

具体原因不知。但是这个定位定得太烂了,`$$("div.changes").find("span:nth-child(2) a") `,尝试换一个比较有逻辑的语法来定位吧。 2015-05-08 12:18 GMT+08:00 XRene [email protected]: > 除了抓取title和href属性后抓取author时只能抓取一部分的author. > 没整明白是什么原因。 > > app.get("/",function(req,res,next){ > superagent.get("https://cnodejs.org/") > .end(function(err,sres){ > //常规的错误请求 > if(err){ > console.log(err.message); > return res.redirect("/"); > }...

控制一下爬虫的速率 2015-10-01 15:52 GMT+08:00 SCaffrey [email protected]: > 是应该按照lesson4里那样写吗? > > — > Reply to this email directly or view it on GitHub > https://github.com/alsotang/node-lessons/issues/35#issuecomment-144647052 > .

大体上没错啊,剩下的微调一下就好了 2015-11-25 13:35 GMT+08:00 SCaffrey [email protected]: > [image: :+1:] > > — > Reply to this email directly or view it on GitHub > https://github.com/alsotang/node-lessons/issues/35#issuecomment-159496421 > .

用 settimeout 模拟 sleep 不会阻塞啊 2016-06-12 16:50 GMT+08:00 YuqiangZhang [email protected]: > 请问nodejs如何控制爬虫速率啊?如果模仿sleep的话会让整个进程都堵塞,得不偿失啊,求指点,3Q > > — > You are receiving this because you were mentioned. > Reply to this email directly,...

如果 cookie 能够被获取的话,无论这个 cookie 进行了什么加密手段,都是可以被伪造登录的。 除非 1. 使用 https 使得 cookie 无法被获取 2. 服务端对于浏览器指纹或者登录ip有校验。

signedCookies 只是防止用户本地篡改欺骗服务器的,防止不了中间人劫持 cookie 并仿造登录。