#NEWLINE# def downloader( directory , iteration ) : #NEWLINE# #INDENT# url = ( 'https://virusshare.com/hashes/VirusShare_%05d.md5' % iteration ) #NEWLINE# print ( '  Downloading {0} into {1}...' . format ( iteration , directory ) ) #NEWLINE# file_path = os . path . join ( directory , os . path . basename ( url ) ) #NEWLINE# contents = urlopen ( url ) #NEWLINE# file_output = open ( file_path , 'wb' ) #NEWLINE# file_output . write ( contents . read ( ) ) #NEWLINE# file_output . close ( ) #NEWLINE# time . sleep ( 1 )