Created
February 18, 2024 13:49
-
-
Save horoiwa/7b088bf33473139bd29ba671a9175160 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 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