标签: python
如何使用urllib.urlretrieve执行超时?
urllib.urlretrieve('http://%s/?action=snapshot' % (self.internal_streamer_address), "static/images/printer_jobs/printer_job_%s.jpg" % (printer_job.id))