0
如何在python中的PyCurl(libcurl)模塊中實現重試選項?同樣的事情也該效果:如何在PyCurl中實現重試選項
捲曲--retry 3 --retry延時5 'http://somesite.com/somefile'
當前代碼:
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()