Created
November 25, 2014 17:39
-
-
Save nohe427/e87101b212b7e41185ea to your computer and use it in GitHub Desktop.
downloadZipFilesFrom ArcGIS Online
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
import requests | |
urlToGoTo = 'URLOfServiceOnAGOL' | |
r = requests.get(urlToGoTo, allow_redirects=True) | |
with open(r"FileLocation.ZIP", "wb") as f: | |
for chunk in r.iter_content(): | |
f.write(chunk) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment