fix top1m unzipping

This commit is contained in:
Connor Olding 2021-06-09 10:59:55 +02:00
parent 27ee8c1081
commit 40ddd264fb
1 changed files with 1 additions and 0 deletions

View File

@ -26,6 +26,7 @@ def download_top1m(urltop=None, csvfn=None):
with urlopen(urltop) as re:
comp.write(re.read())
comp.seek(0)
with ZipFile(comp) as zipf:
with zipf.open(csvfn) as f:
uncomp = f.read()