Created
March 26, 2022 13:12
-
-
Save febridev/caa5f873ca70913e0c492c69fae12f83 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 os | |
import logging | |
from time import time | |
from kaggle.api.kaggle_api_extended import KaggleApi | |
def download_from_kaggle(): | |
dataset = 'yamaerenay/spotify-dataset-19212020-600k-tracks' | |
path = 'kaggle' | |
api = KaggleApi() | |
api.authenticate() | |
api.dataset_download_files(dataset, path,unzip=True) | |
# api.dataset_download_file(dataset, 'artists.csv', path,) | |
# api.dataset_download_file(dataset, 'tracks.csv', path,unzip=True) | |
# if __name__ == "__main__": | |
# download_from_kaggle() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment