0
Python의 PyCurl (libcurl) 모듈에서 재시도 옵션을 구현하려면 어떻게해야합니까? 의 효과와 비슷한 뭔가 : 5 'http://somesite.com/somefile'PyCurl에서 재시도 옵션을 구현하는 방법
컬 --retry 3 --retry 지연
현재 코드 :
buffer = BytesIO()
c = pycurl.Curl()
c.setopt(c.URL, 'http://somesite.com/somefile')
with open('output.txt','w') as f:
c.setopt(c.WRITEFUNCTION, f.write)
c.perform()