报错信息 Traceback (most recent call last): File "<stdin>", line 1, in <module> File "D:\python\lib\site-packages\requests-2.18.3-py2.7.egg\requests\api.py", line 72, in get return request('get', url, params=params, **kwargs) F…
爬虫时报错如下: requests.exceptions.SSLError: HTTPSConnectionPool(host='某某某网站', port=443): Max retries exceeded with url: /login/ (Caused by SSLError(SSLError("bad handshake: Error([('SSL routines', 'tls_process_server_certificate', 'certificate verify fail…
问题: requests.exceptions.SSLError: HTTPSConnectionPool(host='mall.christine.com.cn', port=443): Max retri.. 解决: response = requests.get('http://www.baidu.com/', headers = header, verify=False)…
python 读取文件时报错UnicodeDecodeError: 'gbk' codec can't decode byte 0x80 in position 205: illegal multib 在python3读取txt文件时,遇到上面问题是因为: txt文件存的是utf8编码,打开文件的时候没有指定编码,文件虽然是utf8编码,但是在计算机里面存储的还是unicode编码数据,即计算机是将文件的内容按照utf8编码成unicode后存到了硬盘上,而现在执行f.read()的时候,因为没…
python 读取文件时报错UnicodeDecodeError: 'gbk' codec can't decode byte 0x80 in position 205: illegal multibyte sequence python读取文件时提示"UnicodeDecodeError: 'gbk' codec can't decode byte 0x80 in position 205: illegal multibyte sequence" 解决办法1. FILE_OBJECT…
import requests url='https://www.duitang.com/napi/blog/list/by_search/?kw=%E6%A0%A1%E8%8A%B1&start=0&limit=1000.tar.gz' page=requests.get(url) 代码运行后SSLError: HTTPSConnectionPool(host='b-ssl.duitang.com', port=443): Requests 可以为 HTTPS 请求验证 SSL 证书,就…
错误信息如下: Using base prefix 'c:\\users\\huful\\appdata\\local\\programs\\python\\python36-32'New python executable in E:\Learning\Python\search\Scripts\python.exeInstalling setuptools, pip, wheel... Complete output from command E:\Learning\Python\searc…
用Flask+python+mysql写一个小项目 系统 win10 py版本:3.6.1 在配置数据库时报错ModuleNotFoundError: No module named 'MySQLdb' from blog import db db.create_all() 报错信息是 缺少模块MYSQLdb,于是安装库mysqldb C:\WINDOWS\system32>py -3 -m pip install mysqldbCollecting mysqldb Could not find…
requests的安装我尝试了两种方法: 第一种:下载安装 https://github.com/requests/requests 然后解压到:(python的安装路径,这里使用的是默认路径) AppData\Local\Programs\Python\Python37   进入到requests-master目录下,从cmd中运行代码: python setup.py install 直到安装结束: 然后可以在目录里看到requests相关的文件夹: \AppData\Local\Progr…
今日在公司电脑运行自动化测试脚本,出现cannot find Chrome binary报错 百思不得其解,排错后发现应该是电脑以前有配置driver文件路径,driver所在文件路径已变更,现python还是在原路径查找webdriver,解决办法:调用driver时指定driver所在的绝对路径即可解决. driver = webdriver.Chrome("D:\Google\Chrome\Application\chromedriver.exe")…