Google spreadsheets contain FontStyle information, such as bold, red, etc.
I want to read the FontStyle from the spreadsheet.
Is GAS the only way to read FontStyle info from a google spreadsheet? Are there any other options?
I am using appengine and Gdata/Spreadsheet API with OAuth. This is reading Cell Data from the google spreadsheet.
Gdata & Google Spreadsheets API 3.0:
I have searched Gdata & Google Spreadsheets API, as far as I can tell, these only read cell data. There is a GData feature request to read FontStyle info here :
Avoid Google Apps Script:
I want to avoid using google apps script. I know GAS can read FontStyle info. But GAS is complex/scary for a non programmer to setup and so I want to avoid GAS.
I think the easiest way to work around this would be to use the Google Drive API instead and download the spreadsheet in HTML format. Then you can parse the HTML to determine the cell fonts and colors.
Related
I would like to fetch data from the google sheet with React.
I tried to use the following libraries
https://github.com/ruucm/react-google-sheets
https://github.com/gglukmann/use-google-sheets
However, it always requires setting the file permission to "Anyone with this link can view". We don't want to share the file outside our org. If we do this, the client cannot read the data from google sheet.
Is there any way that I can fetch data from a restricted google sheet? Thank you
You need to use the Google Sheets API to connect to the Sheet and fetch the data.
The application would need to be authorised to run as the person who owns or is an editor of the sheet. Check out the node.js quickstart for setting up an application in the cloud console. The method you need to get data is spreadsheets.values.get.
Context
I'm a web development beginner building a MERN stack web-app to help school clubs manage applicants. I want users to be able to input a link to Google Sheet generated from their Google Form and be able to see a cleaner, properly formatted version of their data.
Exploration
From my research, it looks like most solutions:
Involve people wanting to automate their own sheets (and therefore being able to use the Google Sheets script editor)
Make use of Tabletop.js, which will soon be deprecated. I looked into PapaParse but really couldn't figure out how to solve my problem using it.
Use MongoDB Stitch, which also relies on accessing the Google Sheets script editor
Require users to download the file as a CSV file (which is non-ideal for live updates)
It also seems like the Google Sheets API requires the user to have access to the script editor? I might not be interpreting the docs correctly. Would having users authenticate/login to my web app through Google be able to overcome this problem?
My Goal
User pastes the link to their Google Sheets (with view access or published to the web) in my React app
My React app parses the Sheets data and stores it in MongoDB Atlas
[Optional] Update the MongoDB database whenever the original sheet is updated (There is no need for MongoDB to communicate back with the sheet.)
Thank you, any help is much appreciated!
Try out Zapier.
It has a Google Sheets + MongoDB integration.
https://zapier.com/apps/google-sheets/integrations/mongodb
One way you could possibly achieve this is to:
link your Google Sheets account to Zapier, then
collect the links through your React app,
duplicate the sheet from that link
set Zapier to watch for that trigger when a new sheet is duplicated, to pass on the data to MongoDB
Say I have an App and I want to use Google sheet as my backend database.
Can I let the different users use their own Google sheets by logging in their own Google account?
I read some articles about using Google sheet as a backend database, but almost all of them are about creating the Google sheet with your own Google account.
I know Google Drive can let you save user-specific data to user's own space. I am not sure if Google Sheets can do a similar thing.
that's a very abstract question, but yes (it depends). after that, all you need to do is collect all the data into a master spreadsheet with IMPORTRANGE formulas:
=IMPORTRANGE("URL-or-ID", "Sheet1!A1:Z")
is there any way for a google app engine app to convert a user uploaded docx file to html?
I think the question is really; How can I convert a word document to HTML using Java/Python. and has little to do with google-app-engine itself.
This has been addressed on SO already for Python and for Java
One possible solution would be to use the Google Apps Document List API to send your file to Google Docs and then retrieve it in another format.
Is it possible to get a data source URL of Google Spreadsheets for appengine datastore entities? I want to use the google visualization query objects to query my datastore. Or how I an expose my datastore with a datasource URL.
And for a Google visualization based project which one is better between Google Spreadsheet and GAE big table. Since Google Spreadsheet has very good query options and a nice harmonics with google visualization. One can get a direct DataTable from a data source URL. To do the same thing needs a good amount of task with GAE big table. Please share your experience in this area.
There's nothing built in to do this. You'll need to write your own code that returns your data in a format GViz supports.