Skip to content

Instantly share code, notes, and snippets.

View alexanderpegoto's full-sized avatar

Alexander Pegot Ogier alexanderpegoto

  • Madird
  • 07:57 (UTC -12:00)
View GitHub Profile
@ZeccaLehn
ZeccaLehn / pythonzip.py
Created April 5, 2019 17:47
Read Zip into Python from URL
import requests, zipfile, io
url = 'https://www.huduser.gov/portal/datasets/hads/hads2013n_ASCII.zip'
filename = 'thads2013n.txt'
r = requests.get(url)
z = zipfile.ZipFile(io.BytesIO(r.content))
z.extractall()
import pandas as pd