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