Skip to content

Instantly share code, notes, and snippets.

@nohe427
Created November 25, 2014 17:39
Show Gist options
  • Save nohe427/e87101b212b7e41185ea to your computer and use it in GitHub Desktop.
Save nohe427/e87101b212b7e41185ea to your computer and use it in GitHub Desktop.
downloadZipFilesFrom ArcGIS Online
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