Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import time
- import py7zlib
- datapath = '/home/emilio/Documents/Personal/BetfairData/HistoricalData/'
- fullfilename = 'horses_2007.7z'
- print 'Opening archive ' + fullfilename
- archive = py7zlib.Archive7z( file(datapath + fullfilename) )
- for name in archive.getnames():
- print '------------------------------------------------------------'
- print 'Processing file ' + name
- start = time.time()
- member = archive.getmember(name)
- temp = member.read()
- elapsed = (time.time() - start)
- print 'Unzipping file took ' + str(elapsed) + 'sec'
Add Comment
Please, Sign In to add comment