![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python3 爬虫
文章平均质量分 74
zx316966524
这个作者很懒,什么都没留下…
展开
-
python3 爬虫入门(三)正则表达式基本使用
Python3 正则表达式 正则表达式是一个特殊的字符序列,它能帮助你方便的检查一个字符串是否与某种模式匹配。就是 事先定义好的一些特定字符、及这些特定字符的组合,组成一个“规则字符”,这个“规则字符” 来表达对字符的一种过滤逻辑。 正则并不是python独有的,其他语言也都有正则 python中的正则,封装了re模块 本章节主要介绍Python中常用的正则表达式处理函数。原创 2017-11-29 17:42:42 · 3535 阅读 · 0 评论 -
python3 爬虫入门(二)requests库基本使用
Requests库的安装 一般直接使用pip安装Python的库:pip install requests 各种请求方式 requests里提供个各种请求方式 requests.get(‘https://github.com/timeline.json’) #GET请求 requests.post(“http://httpbin.org/post”) #POST请求 req原创 2017-11-29 09:52:12 · 1078 阅读 · 0 评论 -
python3 爬虫入门(一)urlib库基本使用
python3 urlib库基本使用原创 2017-11-21 14:22:12 · 4240 阅读 · 0 评论