From 40ddd264fbfb66754cd64f0be40273a17fe453a7 Mon Sep 17 00:00:00 2001 From: Connor Olding Date: Wed, 9 Jun 2021 10:59:55 +0200 Subject: [PATCH] fix top1m unzipping --- respodns/top1m.py | 1 + 1 file changed, 1 insertion(+) diff --git a/respodns/top1m.py b/respodns/top1m.py index a1118b7..c68c8e2 100644 --- a/respodns/top1m.py +++ b/respodns/top1m.py @@ -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()