google-sheets-importxml

Google ImportXML from QGIS metadata file

让人想犯罪 __ 提交于 2019-12-11 03:22:46
问题 I am trying to capture elements of an qmd file (that is xml markup) using Google Sheets importxml. Based on How to use importXML function with a file from Google Drive? I think I've got the file importing correctly but can't seem to capture any of the tags. Here's what I am trying - =importXML("https://drive.google.com/uc?id=1AI2C8hQnSOuuoyJXizYBszGmpMXW8xxT&export=download","\\identifier") Here's what the qmd/xml file looks like <!DOCTYPE qgis PUBLIC 'http://mrcc.com/qgis.dtd' 'SYSTEM'>

Google docs ImportXML called from script

末鹿安然 提交于 2019-12-06 11:56:05
I am using ImportXML in a google docs sheet to aqcuire data from the sistrix api. It works fine but I encountered the limitation of 50 ImportXML commands in one sheet. So I used a script that writes the ImportXML command to a cell (temporary) formula and takes back the resulting value of the cell and copies it to the destination cell. So you can do as much ImportXML queries as you need, as they only appear in one temporary cell in the sheet. The problem here is, that the ImportXML query SOMETIMES takes very long or returns with N/A. Is it possible that my script sometimes doesnt wait for the

How would I import YouTube Likes and Dislikes and a ratio from YouTube onto Google Sheets? [closed]

孤人 提交于 2019-12-02 13:24:10
How would I import YouTube likes and dislikes from a video onto Google Sheets? TITLE: =IMPORTXML("https://www.youtube.com/watch?v=MkgR0SxmMKo","//*[@id='eow-title']") VIEWS: =VALUE(REGEXREPLACE(TEXT(IMPORTXML("https://www.youtube.com/watch?v=MkgR0SxmMKo", "//*[contains(@class, 'watch-view-count')]"),0)," view(s)?","")) DURATION: =SUBSTITUTE(REGEXREPLACE(IMPORTXML("https://www.youtube.com/watch?v=MkgR0SxmMKo","//*[@itemprop='duration']/@content"),"PT|S",""),"M",":") LIKES: =IF(ISNA(IMPORTXML("https://www.youtube.com/watch?v=MkgR0SxmMKo","(//*[contains(@class,'like-button-renderer-like-button')]

.getValue() return #N/A when reading ImportXML cell sometimes

一笑奈何 提交于 2019-11-30 23:09:34
I've written a script that writes an ImportXML formula into a cell and then seconds later try to read and replace the cell with it's returning value. The problem is I often (but not always) get #N/A when replacing the cell with the fetched value. The thing is that I am able to see the correct value for a short period of time, so the value gets fetched and return correctly by ImportXML, it's when rewritten to the spreadsheets it gets messed up. Example code: myformula = '=ImportXML("http://api.something/01.xml","/offers/price")'; sheet.getRange("A1").setFormula(myformula); Utilities.sleep(5000)

.getValue() return #N/A when reading ImportXML cell sometimes

我只是一个虾纸丫 提交于 2019-11-30 18:45:29
问题 I've written a script that writes an ImportXML formula into a cell and then seconds later try to read and replace the cell with it's returning value. The problem is I often (but not always) get #N/A when replacing the cell with the fetched value. The thing is that I am able to see the correct value for a short period of time, so the value gets fetched and return correctly by ImportXML, it's when rewritten to the spreadsheets it gets messed up. Example code: myformula = '=ImportXML("http://api