how do i set a timeout value for python's mechanize?

后端 未结 3 686
失恋的感觉
失恋的感觉 2021-02-19 03:04

How do i set a timeout value for python\'s mechanize?

3条回答
  •  遇见更好的自我
    2021-02-19 03:32

    I believe something along the lines of

    mechanize._sockettimeout._GLOBAL_DEFAULT_TIMEOUT = 100
    

    will override the default value Mechanize uses.

提交回复
热议问题