Skip to content

Commit

Permalink
stream url content
Browse files Browse the repository at this point in the history
  • Loading branch information
byrdie committed Aug 2, 2024
1 parent eb267a4 commit ff3e0d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion iris/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ def download(
file = directory / url.name

if overwrite or not file.exists():
r = requests.get(url)
r = requests.get(url, stream=True)
with open(file, "wb") as f:
f.write(r.content)

Expand Down

0 comments on commit ff3e0d4

Please sign in to comment.