by
51 4
0
3
325
2
Top 1% !
Specified
OpenSource
Popularity: 9864th place
Created
Modified Apr 17, 2016

Published on:

No tags for this snippet yet.
Languagepython

Unzipping file with progress bar

Unzipping file with progress bar
post this code
Copy Embed Code
<iframe id="embedFrame" style="width:600px; height:300px;"
src="https://www.snip2code.com/Embed/1177620/Unzipping-file-with-progress-bar?startLine=0"></iframe>
Click on the embed code to copy it into your clipboard Width Height
Leave empty to retrieve all the content Start End
import gzip from tqdm import tqdm with gzip.open('file.log.gz', 'r') as f: for line in tqdm(f.readlines(), leave=True): print(str(line.strip(), encoding='utf-8'), file=open('temp.txt', 'a+'))
If you want to be updated about similar snippets, Sign in and follow our Channels

blog comments powered by Disqus