파이썬 - 웹 링크 다운로드 (버퍼)
import urllib2 def ReportError(msg, screenprinttoo = True): if screenprinttoo: print msg f = open("Error.log", "a") f.write(time.ctime() + " : " + msg + "\n") f.close() def WebLinkSave(url, savedfilename): try: f = urllib2.urlopen(url) except: ReportError("Cannot save url: " + url) return None output = open(savedfilename,'wb',1024*1024*10) while True: binaryfile = f.read() if len(binaryfile)==0:..