随笔分类 -  爬虫

爬虫随机生成useragent
摘要:安装fake-useragent pip install fake-useragent 阅读全文

posted @ 2019-04-11 17:54 s-p-l 阅读(168) 评论(0) 推荐(0)

Unicode码对应的中文
摘要:在爬虫中经常会碰到爬取结果输出为中文,以下为解决办法: 先检查输出text的类型: 若type(text)为str,则 若type(text)为bytes,则 阅读全文

posted @ 2019-01-18 23:35 s-p-l 阅读(299) 评论(0) 推荐(0)

导航