-
Login using your gmail account
-
Click on drop down as shown in following image
- A pop up will open. On the top right of pop up, click on "New Project"
- Give a project name as shown in the image and click "Create"
- Browser will automatically take you back to the next screen. Choose your project from the drop down at the top. And click on "Enable APIS and Services".
- Search for "Google Sheets API" and click on it. Browser will take you to next screen.
- Click on "Enable API"
- Browser will take you back to the next screen. Click on "Credentials" from the left menu.
- On the next screen, Click on "Create Credentials" from the top menu and then "Service Account".
- Give a name to the "Service Account". Click "Create".
- Click "Select a role" -> "Service accounts" -> "Service account user".
- Click "Continue".
- Click "Done".
- Note down the "Email" value and then "Click" on the email value. We will use the email value later. Don't worry if you don't note it. you can always copy it later.
- Click "Add Key" -> "Create new key".
- Create a json key for your Service Account.
- A private key is downloaded to your computer. Upload it to your Jupyter Environment/ save it in the same folder where your notebook is.
- Click on Save at the bottom. Then click on "Back" button at the top.
-
Go to and make a spreadsheet. Create 2 columns, "Temperature" and "Humidity". Fill your data.
-
Get your spread sheet id
- Click on "File" -> "Share" and share it with your service account email
- Make following changes in your code and execute your code.
Hope you enjoyed this project !