Created
February 23, 2016 19:54
-
-
Save pfultz2/d5f02d04a182ca19cf4a to your computer and use it in GitHub Desktop.
Download with progress bar
This file contains hidden or 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
| from tqdm import tqdm | |
| import requests | |
| url = "http://download.thinkbroadband.com/10MB.zip" | |
| response = requests.get(url, stream=True) | |
| with open("10MB", "wb") as handle: | |
| for data in tqdm(response.iter_content()): | |
| handle.write(data) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment