基于如下5点展开requests模块的学习 什么是requests模块 requests模块是python中原生的基于网络请求的模块,其主要作用是用来模拟浏览器发起请求。功能强大,用法简洁高效。在爬虫领域中占据着半壁江山的地位。 为什么要使用requests模块 因为在使用urllib模块的时候,会 ...
分类:
其他好文 时间:
2019-07-08 13:21:12
阅读次数:
105
前两章简单的讲了Beautiful Soup的用法,在爬虫的过程中相信都遇到过一些反爬虫,如何跳过这些反爬虫呢?今天通过豆瓣网写一个简单的反爬中 什么是反爬虫 简单的说就是使用任何技术手段,阻止别人批量获取自己网站信息的一种方式。关键也在于批量。 反反爬虫机制 增加请求头 headers为了模拟更真 ...
分类:
其他好文 时间:
2019-07-05 19:26:08
阅读次数:
138
进入到python的安装路径的 xxxx/site-packages/pip/_vendor/requests/adapters.py 编辑该文件,增加下面这行语句,(注意前面的空格,要和其他行保持一致,否则报错) 编辑完成,保存,正常执行升级语句 ...
分类:
其他好文 时间:
2019-07-01 17:08:38
阅读次数:
145
问题: 使用Python3 requests发送HTTPS请求,已经关闭认证(verify=False)情况下,控制台会输出以下错误: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate ...
分类:
编程语言 时间:
2019-06-29 22:31:22
阅读次数:
856
动图CSS:页面美化和布局控制 一. 概念: Cascading Style Sheets 层叠样式表 * 层叠:多个样式可以作用在同一个html的元素上,同时生效 二. 好处: 1. 功能强大 2. 将内容展示和样式控制分离 * 降低耦合度。解耦 * 让分工协作更容易 * 提高开发效率 三. CS ...
分类:
编程语言 时间:
2019-06-19 21:58:50
阅读次数:
278
经反复试验,mailx发邮件的配置如下:setfrom=XXX@hotmail.comsetsmtp=smtp://smtp.office365.com:587setsmtp-auth-user=XXX@hotmail.comsetsmtp-auth-password=XXXsetsmtp-auth=loginsetsmtp-use-starttls=yessetssl-verify=ignore
分类:
其他好文 时间:
2019-06-18 18:31:38
阅读次数:
129
1 #zookeeper Python3 2 3 #-*- coding: utf-8 -*- 4 5 import socket 6 7 def verify(protocol,ip,port): 8 url = ip+':'+str(port) 9 print('testing if zooke... ...
分类:
其他好文 时间:
2019-06-17 10:51:46
阅读次数:
125
https://docs.openstack.org/newton/networking-guide/deploy-ovs-ha-dvr.html On the compute node containing the instance, verify creation of the fip name ...
分类:
其他好文 时间:
2019-06-10 14:14:55
阅读次数:
166
You can delete any repository or fork if you're either an organization owner or have admin permissions for the repository or fork. Deleting a forked r ...
分类:
其他好文 时间:
2019-06-06 22:49:09
阅读次数:
507