美文网首页工作心得体会
python selenium的坑(持续更新)

python selenium的坑(持续更新)

作者: 魔王大柚子 | 来源:发表于2020-07-08 16:42 被阅读0次

    问题1:HTTPConnectionPool(host='127.0.0.1', port=59936): Read timed out. (read timeout=<object object at 0x000001F92A89D100>)

    driver = webdriver.Chrome(
            executable_path=driver_path, options=chrome_options) 
    

    报错,超时,但是怎么都找不到原因,反复折磨,推敲,发现依赖的其他功能使用了:

    import socket
    socket.setdefaulttimeout(3)
    

    这是设定的时间短,就会引起超时,很绝望!

    相关文章

      网友评论

        本文标题:python selenium的坑(持续更新)

        本文链接:https://www.haomeiwen.com/subject/rdbccktx.html