From 2a6980ad81885b0eba6fc629eb0514a04410bc78 Mon Sep 17 00:00:00 2001 From: asd <374367073@qq.com> Date: Sat, 7 Dec 2019 19:12:34 +0800 Subject: [PATCH] update --- 2019/用node写爬虫.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/2019/用node写爬虫.md b/2019/用node写爬虫.md index ca9b9d6..5acc2ba 100644 --- a/2019/用node写爬虫.md +++ b/2019/用node写爬虫.md @@ -18,4 +18,8 @@ yarn global(是否全局) add koa koa-router superagent cheerio 2.获取网页内容: -superagent.get(''<网址>).end((err,res)=>{) +superagent.get(''<网址>).end((err,res)=>{ + //其中res.text 就是获取的网站内容的源代码 +}) + +3. \ No newline at end of file