This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import urllib2 | |
import math | |
def downloadChunks(url): | |
"""Helper to download large files | |
the only arg is a url | |
this file will go to a temp directory | |
the file will also be downloaded | |
in chunks and print out how much remains |