会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
1
2
6
PengLi
一个学生物的程序猿
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
8
下一页
2020年5月28日
numpy基础用法学习
摘要: numpy get started 导入numpy库,并查看numpy版本 import numpy as np np.__version__ '1.14.0' 一、创建ndarray 1. 使用np.array()由python list创建 参数为列表: [1, 4, 2, 5, 3] 注意:
阅读全文
posted @ 2020-05-28 17:03 peng_li
阅读(175)
评论(0)
推荐(0)
2020年5月26日
scrapy (6)-CrawlSpider的使用
摘要: ”python爬虫系列“目录: Python爬虫(一)-必备基础 Python爬虫(二)- Requests爬虫包及解析工具 xpath Python爬虫(三)- Scrapy爬虫框架系列 scrapy (1)- 基础用法 scrapy (2)- get请求 scrapy (3)- post请求 s
阅读全文
posted @ 2020-05-26 14:51 peng_li
阅读(531)
评论(0)
推荐(0)
scrapy (5)-爬取二级页面的内容
摘要: ”python爬虫系列“目录: Python爬虫(一)-必备基础 Python爬虫(二)- Requests爬虫包及解析工具 xpath Python爬虫(三)- Scrapy爬虫框架系列 scrapy (1)- 基础用法 scrapy (2)- get请求 scrapy (3)- post请求 s
阅读全文
posted @ 2020-05-26 13:18 peng_li
阅读(3743)
评论(0)
推荐(0)
scrapy (4)-请求传参
摘要: ”python爬虫系列“目录: Python爬虫(一)-必备基础 Python爬虫(二)- Requests爬虫包及解析工具 xpath Python爬虫(三)- Scrapy爬虫框架系列 scrapy (1)- 基础用法 scrapy (2)- get请求 scrapy (3)- post请求 s
阅读全文
posted @ 2020-05-26 13:17 peng_li
阅读(377)
评论(0)
推荐(0)
scrapy (3)- post请求
摘要: ”python爬虫系列“目录: Python爬虫(一)-必备基础 Python爬虫(二)- Requests爬虫包及解析工具 xpath Python爬虫(三)- Scrapy爬虫框架系列 scrapy (1)- 基础用法 scrapy (2)- get请求 scrapy (3)- post请求 s
阅读全文
posted @ 2020-05-26 13:15 peng_li
阅读(316)
评论(2)
推荐(0)
scrapy (2)- get请求
摘要: ”python爬虫系列“目录: Python爬虫(一)-必备基础 Python爬虫(二)- Requests爬虫包及解析工具 xpath Python爬虫(三)- Scrapy爬虫框架系列 scrapy (1)- 基础用法 scrapy (2)- get请求 scrapy (3)- post请求 s
阅读全文
posted @ 2020-05-26 13:14 peng_li
阅读(1514)
评论(0)
推荐(0)
2020年5月19日
python中的join()函数的用法
摘要: Python中有join()和os.path.join()两个函数,具体作用如下: join(): 连接字符串数组。将字符串、元组、列表中的元素以指定的字符(分隔符)连接生成一个新的字符串 os.path.join(): 将多个路径组合后返回 一、函数说明 1、join()函数 语法: 'sep'.
阅读全文
posted @ 2020-05-19 23:01 peng_li
阅读(780)
评论(0)
推荐(0)
requests.session()会话保持
摘要: 首先说一下,为什么要进行会话保持的操作? requests库的session会话对象可以跨请求保持某些参数,说白了,就是比如你使用session成功的登录了某个网站,则在再次使用该session对象请求该网站的其他网页都会默认使用该session之前使用的cookie等参数。尤其是在保持登陆状态时运
阅读全文
posted @ 2020-05-19 22:43 peng_li
阅读(2602)
评论(0)
推荐(0)
scrapy (1)- 基础用法
摘要: ”python爬虫系列“目录: Python爬虫(一)-必备基础 Python爬虫(二)- Requests爬虫包及解析工具 xpath Python爬虫(三)- Scrapy爬虫框架系列 scrapy (1)- 基础用法 scrapy (2)- get请求 scrapy (3)- post请求 s
阅读全文
posted @ 2020-05-19 18:29 peng_li
阅读(432)
评论(0)
推荐(0)
2020年5月18日
python 爬虫由于网络或代理不能用导致的问题处理方法
摘要: 平时在爬取某些网页的时候,可能是由于网络不好或者代理池中的代理不能用导致请求失败。此时有们需要重复多次去请求,python中有现成的,相应的包供我们使用: 1. 我们可以利用retry模块进行多次请求,如果全部都失败才报错。当然使用retry库之前也需要先安装,eg:
阅读全文
posted @ 2020-05-18 18:25 peng_li
阅读(1706)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
下一页
公告
1