nodejs+cheerio爬虫测试

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

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

原文地址:https://www.cnblogs.com/wyhong/p/6381642.html