Skip to content

Instantly share code, notes, and snippets.

@horoiwa
Created February 18, 2024 13:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save horoiwa/7b088bf33473139bd29ba671a9175160 to your computer and use it in GitHub Desktop.
Save horoiwa/7b088bf33473139bd29ba671a9175160 to your computer and use it in GitHub Desktop.
import io
import tarfile
import urllib.request
GDB9_URL = "https://deepchemdata.s3-us-west-1.amazonaws.com/datasets/gdb9.tar.gz"
with urllib.request.urlopen(GDB9_URL) as response:
file = io.BytesIO(response.read())
with tarfile.open(fileobj=file, mode='r:gz') as tar:
tar.extractall(path="./data")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment