When linking to files in Google Sheets, by default a link is created to a web page with an image on that page.
Note: This link is just an example and not a real link.
To directly link to the image itself:
- Got to the file in Google Sheets
- The link will look similar to this: https://drive.google.com/file/d/2p91UaHNzqUqyBWXqQRiu9-QXbLs6ggjw/view
- The long string of letters and numbers is the filename, copy this to a notepad somewhere.
- In Spark copy this link https://docs.google.com/spreadsheets/d/{key}/gviz/tq?tqx=out:csv&sheet={sheet_name}
- Replace {key} with the string from above (ex. 2p91UaHNzqUqyBWXqQRiu9-QXbLs6ggjw)
- Repose {sheet_name} with the name of the sheet (ex. Sheet1)
- Your link will now look like this: https://docs.google.com/spreadsheets/d/QXbLs6ggjw/gviz/tq?tqx=out:csv&sheet=Sheet1
- Now spark should be able to pull the file from this location.
The link can be publicly accessible or it can be private and available to anyone who has the link.
That's it, this link will now directly download a CSV file
Comments
0 comments
Please sign in to leave a comment.