fourkitchens / czdap-tools

Tools for downloading zone data and authentication credentials from ICANN's CZDS application.
MIT License
125 stars 47 forks source link

Too much memory used #13

Open davidgfnet opened 8 years ago

davidgfnet commented 8 years ago

Hey! Update the download.py file to use less memory:

r = s.get(config['base_url'] + url, stream = True)

Setting stream = True makes it not allocate that much memory. Since we iterate it on 1024b blocks it's not necessary.