Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
alsotang authored Jul 6, 2016
1 parent 55954a4 commit 99f168c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lesson4/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@

## 课程内容

*注意,cnodejs.org 网站有并发连接数的限制,所以当请求发送太快的时候会导致返回值为空或报错。建议一次抓取3个主题即可。文中的40只是为了方便讲解*

这一章我们来到了 Node.js 最牛逼的地方——异步并发的内容了。

上一课我们介绍了如何使用 superagent 和 cheerio 来取主页内容,那只需要发起一次 http get 请求就能办到。但这次,我们需要取出每个主题的第一条评论,这就要求我们对每个主题的链接发起请求,并用 cheerio 去取出其中的第一条评论。
Expand Down

0 comments on commit 99f168c

Please sign in to comment.