Malam terasa cukup hangat, mungkin karena di siang harinya matahari terus saja memancarkan terik tak ingin meredup sejenak saja. Gala dengan motor jadulnya bertandang ke rumah sang pujaan hati. Ada…
In this tutorial, you will download datasets from Kaggle API to Google Colab.
At the end of this tutorial, you will have a Fake News Detection dataset downloaded to your Google Colab, and you can download any dataset you wish in the Kaggle API using the same method.
To complete this tutorial, you will need:
Log in to your Kaggle account, click on your profile, go to your account, scroll to the API section and click Expire API Token to remove previous tokens. Don’t forget this step, otherwise, you may encounter a 401 — unauthorized error when downloading datasets.
2. Second, use the code below to mount your google drive:
3. Then get your authorization code using the URL prompted and provide it in the empty box as shown in the figure:
4. Run the following code to provide the config path to kaggle.json.
In this case, the API command is kaggle competitions download -c fakenewskdd2020
.
3. Run the following command to download the dataset in Colab: !kaggle competitions download -c fakenewskdd2020
The dataset is now downloaded to your Kaggle directory.
4. Unzip the file and delete the zip file using: !unzip \*.zip && rm *.zip
.
Sweet! The dataset is ready for you to play with!
In this article, you downloaded a Fake News Detection dataset from Kaggle API to Google Colab. Now you can download any dataset you want from Kaggle API and play around with your data!
The Waterfall software development methodology originated in construction and manufacturing. When we began building software, it seemed like the logical path to take. You document your requirements…
The characteristics of organized Feminism: focus on celebrities and explode at fixed points, and use posting robots to paste water in batches for ordinary people, creating the illusion of a large…
About Cashman casino slot freebies Cashman Casino Fan Page Free Coins No Human.Amigo Bingo launched back in 1999, being one of the first online bingo sites and have built a solid reputation for…