Created
March 29, 2019 19:00
-
-
Save yearofthewhopper/83a537a2f8d63dabd3af72827b0a8eca 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
!pip install kaggle | |
api_token = {"username":"USERNAME","key":"API_KEY"} | |
import json | |
import zipfile | |
import os | |
with open('/content/.kaggle/kaggle.json', 'w') as file: | |
json.dump(api_token, file) | |
!chmod 600 /content/.kaggle/kaggle.json | |
!kaggle config set -n path -v /content | |
!kaggle competitions download -c jigsaw-toxic-comment-classification-challenge | |
os.chdir('/content/competitions/jigsaw-toxic-comment-classification-challenge') | |
for file in os.listdir(): | |
zip_ref = zipfile.ZipFile(file, 'r') | |
zip_ref.extractall() | |
zip_ref.close() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment