Pycurl

  • cURL library module of python
  • 实例 [1]

urllib超时设置:

import socket
socket.setdefaulttimeout(5.0)
[1]https://github.com/zhaoweiguo/demo-python/tree/master/web/Pycurl