Created
September 30, 2018 01:44
-
-
Save gmr/1af89bb04c1873c9242319ef1a2b4ff6 to your computer and use it in GitHub Desktop.
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 gzip | |
import requests | |
r = requests.get('http://data.dot.state.mn.us/iris_xml/incident.xml.gz') | |
with open('incident.xml', 'w') as handle: | |
handle.write(gzip.decompress(r.content).decode('utf-8')) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment