![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
爬虫
wuming先生
这个作者很懒,什么都没留下…
展开
-
python爬虫学习第二天(数据解析)
数据解析的几种方法re解析(正则表达式,速度快但是复杂)bs4解析(实现简单,当是慢)xpath解析(目前最流行)这三种可以混合使用re解析正则表达式在线正则表达式测试原创 2021-07-07 18:38:18 · 60 阅读 · 0 评论 -
python爬虫学习第一天
一个简单的爬虫程序# -*-coding:utf-8-*-from urllib.request import urlopenurl = "https://blog.csdn.net/weixin_53475254?spm=1000.2115.3001.5343"resp = urlopen(url)with open("my.html",mode = 'w',encoding='utf-8') as f: f.write(resp.read().decode('utf-8'))prin原创 2021-07-02 16:23:05 · 152 阅读 · 0 评论