当前位置:网站首页>request调用 get方法报错以及解决
request调用 get方法报错以及解决
2022-06-10 09:08:00 【vzhb】
用request 的 session 调用 get方法 最后得出这么个错误信息。
解决此问题:
ValueError: Timeout value connect was Timeout(connect=None, read=None, total=None), but it must be a...
原代码:
res=requests.get(url=url)仔细看了一下,url没问题,自己在网页搜索也没问题;
再看了一下对应的bug说明,应该是请求获取信息超时了。
于是修改如下,解决问题。
res=requests.get(url=url, timeout=(30))边栏推荐
- Uniapp always locates the chat page to the bottom display
- 请问手机办理股票开户安全吗?
- Practice of high performance graph computing system Plato in Nebula graph
- Win11 install texlive version 2021
- MFC窗口增加状态栏的方法
- 稀疏性(sparse)知识点
- win11安装Pandoc
- Redis configuration optimization
- FormBuilder
- Lexin ESP Rainmaker accelerates the transformation of enterprise intelligence, and private cloud solutions help customers build their own brands
猜你喜欢

Pipeline pipeline for VTK learning

接触式IC卡 - STM32(Smart Card)

乐鑫 ESP RainMaker 加速企业智能转型,私有云方案助力客户打造自有品牌

Alignment HR_ MySQL storage engine, so it is

window11 无法打开安全中心解决方法

ifstream seekg( ) read( )文本操作

Ifstream seekg() read() text operation

中断上下文中的preempt count

One paper second kill all permutation and combination subsets problem

Texstudio how to compile and run tex files based on markdown macro package
随机推荐
texstudio 如何编译运行基于markdown宏包的tex文件
win11安装Pandoc
以行为单位 页面的所有的内容都是以行分切的
解压jar包修改配置文件(解压、修改、压缩、运行)
FormBuilder
Task03:复杂一点的查询(二)
vtk学习之引用计数与智能指针
视频|乐鑫研发说
Unzip the jar package and modify the configuration file (unzip, modify, compress and run)
Task03: more complex query (2)
Yaml basic syntax
MMSegmention系列之三(基本的网络架构和预训练模型)
MainActivity
Task04: set operation
AWS IOT reference example of Lexin launching esp32-c3
BlockingQueue, synchronousqueue, arrayblockingqueue, reentrantlock, semaphore, fair and unfair
Redis configuration optimization
中断上下文中的preempt count
网页免费 字体库
Task06: Autumn move script a