
node爬虫
mus_木司
武理学生,正在学习前端知识orz
简历:https://mus-z.gitee.io/resume/
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
通过superagent爬表情包的例子
参考视频https://www.bilibili.com/video/BV1i7411G7kW?p=12 代码地址:https://codechina.csdn.net/mus123/fabiaoqing_spider原创 2021-01-27 00:41:26 · 515 阅读 · 0 评论 -
使用nodejs爬取gb2312中文乱码的解析(superagent-charset)
const request = require('superagent') require('superagent-charset')(request)// request.get("https://www.dytt8.net/index.htm") .buffer(true) .charset("gbk") .then(function (res) { console.log(res.text) }) .catch((err) => {原创 2021-01-23 12:33:29 · 1161 阅读 · 0 评论