Created
September 30, 2018 01:44
-
-
Save gmr/1af89bb04c1873c9242319ef1a2b4ff6 to your computer and use it in GitHub Desktop.
Revisions
-
gmr created this gist
Sep 30, 2018 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,6 @@ 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'))