nodejs+cheerio爬虫测试

1、通过request.get获取获取文本,这一步需要注意的是中文编码问题:新建文件curl.js

2、读取想要的数据,新建文件index.js,这里cheerio可以当成jquery来用。

 

posted @ 2017-02-09 12:49  YH_W  阅读(230)  评论(0编辑  收藏  举报