find last modified date on a google fusion table - google-fusion-tables

looking for ways to find last modified date on a google fusion table lead me to this post:
https://groups.google.com/d/topic/fusion-tables-users-group/NVEr2TVR88I/discussion
is there a way to find out if the data has changed before syncing it with javascript?

The last modified date is not available through the Fusion Tables API. However, you should be able to get the last modified date through the Drive API (each Fusion Tables is another file in Google Drive).
Use the drive.files.get method with the table id. You can try it out with the API explorer:
https://developers.google.com/apis-explorer/#p/drive/v2/drive.files.get
First click on the button in the top right saying "Authorize requests using OAuth 2.0". Then, put in the fusion table id for the "fileid" field, and click "Execute". You should see all the metadata you want. It will also show you the API call that you need to construct in your application.

Related

Some fields in Google sheet are not recognized by GDS

I have a simple Google sheet that has 9 fields as shown below
Google sheet data source
When I connect this file as a data source using Google Sheets connector, I get ONLY 7 fields instead of 9 as shown below:
Data Source Editor
There are two missing files that cannot be recognized by GDS which are scenario and feedback fields respectively.
In order to solve this issue, I tried the following:
disconnect and reconnect the data source file again. But it did not work.
Also, I tried to use refresh fields but in vain too.
I tried also.
I could not find any reason for that behavior. please help if you can.
Here is a link to a sample Google Sheet file.
https://docs.google.com/spreadsheets/d/1GIHjwPp0uodUiJeXeX9RVr58hFz2re-6ilZYAeFU_Lc/edit?usp=sharing
Are these missing columns in your original google sheets file also empty? If yes, this is the reason why GDS is not recognizing those table. If you add some value in at least one row of these columns and reconnect the data source, they will show up.
If you intend to keep those columns empty for whatever reason, you can make a row with 'test' as values and filter those out in the report after connecting the data source.

ImportXML function in Google Sheets to pull out specific data

I'm unable to import with ImportHTML table (it's prohibited by website) from the following page:
https://www.barchart.com/futures/quotes/SIH22/volatility-greeks/mar-22
I've tried and failed to use ImportXML function to retrieve a specific value from this page.
For example the last price of a specific strike from the table. As shown in the attached image.
Any hope to retrieve the data with ImportXML?
It seems that the webpage you provided is being controlled by JavaScript which means IMPORT functions of Google Sheets won't be able to fetch the data that you want. To check whether it is JavaScript enabled webpage, you can click on the lock button on the left side of the URL in the browser -> Click on site settings -> Set JavaScript to Block.
Upon doing this, the table in the website you provided disappeared.
I suggest finding another source website which gives the same information and can be fetched using IMPORT functions.

How to extract data of previous week based on drop down from the Yahoo Fantasy Football

Hy, I am using Yahoo Fantasy Football and I have design Google Sheet to get the score data which is the working fine. The link to the sheet is as under.
Google Sheet Link
I have changed the permission to Editor. I have made a drop-down which holds the information of Week numbers. Basically, my idea is that by choosing the week number I want to populate the data from yahoo fantasy football. For importing data, i am using this command.
=importhtml("https://football.fantasysports.yahoo.com/f1/683375","table",1)
and this command is working well.
I tried it by using the same command but it does not works for the week numbers. The source of the page is as under.
so according to the given picture, here is the week number, I want to implement the same in the google sheet by using the dropdown. I have implemented the drop down but it does not work. Is there a way to interlink both using scripts or command so from google sheet when I chose week from the drop-down the concerning data should be populated? please take a look at the Google Sheet given above. I am also getting this error, while it was working fine before, how can it be resolved also.
Thanks
IMPORTHTML cannot retrieve elements dynamically inserted by a script. In your case the content on Week matchups is inserted dynamically and therefore will not be retrieved (it will return empty). Moreover, IMPORTHTML olny gets data from tables or lists and if you inspect what it seemed to be a table in Week Matchup is just actually a series of divs. If the content would not be inserted dynamically, to get the data from these divs you would need to use IMPORTXML.
If you still want to retrieve this information I am afraid that you will need to look for other web scraping techniques.

How to Get A Company Financials in to Google Sheets

I am trying to get a specific value from a public company's balance sheet into Google Spreadsheet to better analyze the company financials. I want to add the ticker in one of the cells and via a formula, I will get the Total Current Assets for example.
Is there a way to it?
The main issue is that the data is populated after the page is being rendered, so even if I use the IMPORTHTML and set the right XPath I am getting Imported content is empty. It because the value is since it is being fetched on the on a later script.
I found this service which provides the company's financials in a JSON and CSV formats, but I dont know how to parse it on the googlesheet.
Should be something that someone already solved.
Thanks

Automatically update table of contents with Google Docs Api

I am using the Google Docs API to update content in a document.
The document has a table of contents, but this doesn't update automatically after making changes in the document using the API.
The only method I've found, is to manually open the document and click the refresh icon next to the table of contents, which will update the TOC.
Is there a way to do this programatically, using the Google Docs API?
The Google Docs API does not make available a method that will allow you to automatically refresh the table of contents in a page programmatically. On top of this, without a TableOfContents already in a document, it is currently not possible to obtain links to heading paragraphs, as detailed on Google’s Issue Tracker. This means that elements can not be fetched to insert without manually pressing the refresh button in the document itself.
A feature request to generate and update a Table of Contents programmatically has been submitted here, which you can indicate is a problem you’re also experiencing and get updates by giving it a star.

Resources