python requests 10041报错_pythonrequests返回unicode异常消息(或如何设置请求区域设置)...
您可以尝试os.strerror,但它可能不会返回任何内容或相同的非英语字符串。在ENGLISH_WINDOWS_SOCKET_MESSAGES = {
10004: "Interrupted function call.",
10013: "Permission denied.",
10014: "Bad address.",
10022: "Invalid argument.",
10024: "Too many open files.",
10035: "Resource temporarily unavailable.",
10036: "Operation now in progress.",
10037: "Operation already in progress.",
10038: "Socket operation on nonsocket.",
10039: "Destination address required.",
10040: "Message too long.",
10041: "Protocol wrong type for socket.",
10042: "Bad protocol option.",
10043: "Protocol not supported.",
10044: "Socket type not supported.",
10045: "Operation not supported.",
10046: "Protocol family not supported.",
10047: "Address family not supported by protocol family.",
10048: "Address already in use.",
10049: "Cannot assign requested address.",
10050: "Network is down.",
10051: "Network is unreachable.",
10052: "Network dropped connection on reset.",
10053: "Software caused connection abort.",
10054: "Connection reset by peer.",
10055: "No buffer space available.",
10056: "Socket is already connected.",
10057: "Socket is not connected.",
10058: "Cannot send after socket shutdown.",
10060: "Connection timed out.",
10061: "Connection refused.",
10064: "Host is down.",
10065: "No route to host.",
10067: "Too many processes.",
10091: "Network subsystem is unavailable.",
10092: "Winsock.dll version out of range.",
10093: "Successful WSAStartup not yet performed.",
10101: "Graceful shutdown in progress.",
10109: "Class type not found.",
11001: "Host not found. No such host is known.",
11002: "Nonauthoritative host not found.",
11003: "This is a nonrecoverable error.",
11004: "Valid name, no data record of requested type.",
}
(对于将来的scraper:使用了以下xpath://div[@id="MT1"]//h3和{})
python requests 10041报错_pythonrequests返回unicode异常消息(或如何设置请求区域设置)...相关推荐
- python requests 10041报错_Python-Requests1-批量登录获取uid
需求:从表格取不同的手机号和密码登录,获取不同用户的信息,写入本地表格 requests官网:https://github.com/requests/requests 1.安装Requests模块 1 ...
- python requests 10041报错_Python:requests高级_模拟登陆
# 超级鹰的示范代码 #!/usr/bin/env python # coding:utf-8 import requests from hashlib import md5 class Chaoji ...
- python转c报错no module named_python异常No module named 'win32com'
异常原因: python调用com组件操作office将word转pdf报错如下 Traceback (most recent call last): File "D:/wordTest/w ...
- 已解决(Python爬虫requests库报错 请求异常SSL错误,证书认证失败问题)requests.exceptions.SSLError: HTTPSConnectionPool
成功解决(Python爬虫requests库报错 请求异常,SSL错误,证书认证失败问题)requests.exceptions.SSLError: HTTPSConnectionPool(host= ...
- python文本编辑器报错_notepad++编辑器中运行python程序时需要注意的编码格式
本篇文章给大家带来的内容是关于notepad++编辑器中运行python程序时需要注意的编码格式,有一定的参考价值,有需要的朋友可以参考一下,希望对你有所帮助. 语言:python3.4 文本编辑器: ...
- python导入turtle报错,Python turtle
python flask 全局变量需要加锁吗 python flask 全局变量需要加锁吗 搜索资料 我来答 分享 微信扫一扫 新浪微博 QQ空间 举报 浏览35 次 本地图片 图片链接 代码 提交 ...
- Python注释符报错
众所周知,Python的注释有三大类:单行注释(#).多行注释('''/""")和中文编码声明注释 虽然注释大家都明白,也很简单,但还是有一些细节需要注意 1.Inden ...
- python调用dll报错:ValueError: Procedure called with not enough arguments (4 bytes missing) or wrong call
python调用dll报错:ValueError: Procedure called with not enough arguments (4 bytes missing) or wrong call ...
- python导入openpyxl报错问题,终于解决啦
python导入openpyxl报错问题,终于解决啦 参考文章: (1)python导入openpyxl报错问题,终于解决啦 (2)https://www.cnblogs.com/guotang/p/ ...
最新文章
- Android Studio教程10-Intent的详细使用
- 苹果也像谷歌一样,玩起了自己的X
- linux做一个客户端与WemosD1作为服务器的无线通信(局域网通信)
- jvmti_JVMTI标记如何影响GC暂停
- python做excel表格教程视频_基于Python实现excel表格读写
- cad字体安装_拿了CAD字体不知道怎么装?看过来
- macOS远程管理linux,MacOS远程控制工具
- 智能家居 (9) ——人脸识别摄像头安装实现监控功能
- Java图片处理:ico格式转PNG/JPG等格式
- 累计独立访客(UV)不低于 1000 是什么意思,快速开通流量主
- 《了不起的我》 自我发展的心理学 -- 陈海贤 读后感
- 美团 java_GitHub - meituan/mssapi_java: 美团云对象存储 Java SDK
- 数字图像处理-常考算法代码-详细注释
- echarts 多图表的自适应窗口大小,自动缩放
- 来自日本的品质传承 工机控股发布新品牌HiKOKI战略
- 计算机学科 集体备课记录,科学组集体备课记录
- oracle数据库variable,oracle中的define,declare,variable的差别
- 深度优先搜索与岛屿问题
- matlab idft 二维,idft matlab
- ab胶粘合的原理?详解胶黏剂是如何粘住物体的!