Kaggle Notification System with Kaggle API and Slack API using Google Apps Script
- Clone this Repository
- Go to your Google Drive and make a new Google Apps Script Project.
- Make a new spreadsheet in your Google Drive and make a new Spreadsheet. Name it with the competition name which you want to watch if new kernels appear.
- If you have not installed the Google Apps Script Assistant, install it from the chrome application store.
- Pull the repository you've cloned using the Google Apps Script Assistant.
- Set three hidden properties.You can do this with
File > Project Properties > Script Properties
using webUI.
- token: Slack API token. You can get this from here.
- BASIC_AUTH_ENCODED: Kaggle API basic authentification information.You can get this by running
import urllib3; urllib3.util.make_headers(basic_auth="YOUR_KAGGLE_USERNAME:YOUR_KAGGLE_PASSWORD").get("authorization")
with Python.YOUR_KAGGLE_USERNAME
andYOUR_KAGGLE_PASSWORD
is written in the your kaggle.json. Check here if you don't know what kaggle.json is. Note thatYOUR_KAGGLE_PASSWORD
is not the one you use when you sign in your account. - KERNEL_LIST_SHEET_ID: Spreadsheet ID of the Spreadsheet you have made in the step 3.You can get this by checking the URL of the Spreadsheet.The position of the ID in the URL is
https://docs.google.com/spreadsheets/d/(HERE)
.
- Install SlackApp Library and GSUnit Library. You can do this from
Resources > Libraries
. The Library keys areM3W5Ut3Q39AaIwLquryEPMwV62A3znfOO
andMIUhnnCDES0N3YHPEWX9DUtkh30YExdAc
. - Trigger these code.You can do this from
Edit > Current Project Trigger
Happy Kaggling!!!