google-sheets-api

Google Sheets API Wont Let Me Write Data into My Google Sheet

Google Sheets API Wont Let Me Write Data into My Google Sheet Question: Code is below. this isnt the full code but the basis of it. Im trying to take data from Twitter’s API and Write it to my Google Sheets API. Below is the Code. from googleapiclient import discovery from google.oauth2 import service_account from …

Total answers: 1

google sheets api error: Details: "Invalid values[1][0]: list_value

google sheets api error: Details: "Invalid values[1][0]: list_value Question: Friends, I ask for help to make changes to google sheets. I need to write the following list in column B: list = [‘14.588,61n224.715,38n2.994,21n308.782,90n , 24.588,61n324.715,38n5.994,21n508.782,90’] But it returns the following error. <HttpError 400 when requesting https://sheets.googleapis.com/v4/spreadsheets/1UO606HO_oVnCb8-XENJcEk5Q3Pc6yy8z7ryEH_lfhfI/values/B2%3AB?valueInputOption=USER_ENTERED&alt=json returned "Invalid values[1][0]: list_value { values { string_value: "14.588,61n224.715,38n2.994,21n308.782,90n" …

Total answers: 1

How to print JSON data to a Google Sheet using GSpread

How to print JSON data to a Google Sheet using GSpread Question: I have tried every possible fix I can find online, unfortunately, I’m new to this and not sure if I’m getting closer or not. Ultimately, all I am trying to do is print a JSON feed into a Google Sheet. GSpread is working …

Total answers: 1

Get chart from Google Spreadsheet and update chart placeholder in Slides with Python

Get chart from Google Spreadsheet and update chart placeholder in Slides with Python Question: I’m using Google API to automatize a monthly report. I’m coping a spreadsheet and slide templates, updating the spreadsheet data and I want to add the charts to slides. My spreadsheet have one chart per sheet and each slide will only …

Total answers: 1

How can I only compare dd/mm against dd/mm/yyyy in Google sheets?

How can I only compare dd/mm against dd/mm/yyyy in Google sheets? Question: Today I have a bit more of a complicated question: I have a Google sheet that has the has real dates (dd/mm/yyyy) in one column. While checking, I want to check it against the following: date_format = datetime.today().strftime(‘%d/%m’) Which would only check dd/mm …

Total answers: 1

How to append a new worksheet and upload a local CSV in gspread

How to append a new worksheet and upload a local CSV in gspread Question: I checked the docs of gspread but couldn’t find out a way to APPEND a new local csv into a worksheet into a preexisting sheet. As far as I see the import function just cleans and uploads into the first page. …

Total answers: 1

how to check item is exists and renew value only in python gspread

how to check item is exists and renew value only in python gspread Question: How to check item is exists and renew value only, if not exists and add new one? For example: I have an item 1 and value 1 already in my sheet, and then I get new value of item 1, I …

Total answers: 1

Python gspread Hyperlink adds '

Python gspread Hyperlink adds ' Question: I want to add a Hyperlink to a cell. I’m using the following code: cell_values = [1,’=HYPERLINK("’ + some_url + ‘","’ + some_text + ‘")’,3] for i, val in enumerate(cell_values): cell_list[i].value = val worksheet.update_cells(cell_list) What is printed into the cell: ‘=HYPERLINK("someLink","someText") The cell should be formatted as a Hyperlink, …

Total answers: 2

How to add a nested list with gspread?

How to add a nested list with gspread? Question: Can someone help me please with implementation of a nested list via gspread? Screenshot of what i want to do. Asked By: andreykirv || Source Answers: I believe your goal and your current situation as follows. You want to create a dropdown list in a cell. …

Total answers: 3

This operation is not supported for this document – Sheets API

This operation is not supported for this document – Sheets API Question: (<class ‘googleapiclient.errors.HttpError’>, <HttpError 400 when requesting https://sheets.googleapis.com/v4/spreadsheets/1IcMY2TNLYZtGyKO_zcrhP1MudNFXbNdM/values/P%C3%A1gina1%21A%3AP?alt=json returned "This operation is not supported for this document">, <traceback object at 0x7fbb3dc3bec0>) I am getting this error message when accessing a spreadsheet in Google Sheets, I know that the error occurs because it is hosted …

Total answers: 2