This question already has an answer here:
How do I use the Google Maps API GPS sensor?
(1 answer)
Closed 9 years ago.
I have a site that has two maps on one page one uses the sensor and one doesn't. If I add two scripts I get errors.
<script type="text/javascript" src="//maps.google.com/maps/api/js?v=3&sensor=false"></script>
<script type="text/javascript" src="//maps.google.com/maps/api/js?v=3&sensor=true"></script>
Am I just supposed to use one?
Yes you only use one.
If you want to use the sensor then set it to true. Likewise if you don't want to use it.
In my experience leaving it as true causes no issues if you don't plan to use it.
Related
This question already has an answer here:
Web scrape return empty values
(1 answer)
Closed 1 year ago.
I am trying to automate the prices of items in a game to display on a spreadsheet (World of Warcraft). I am using TheUndermine journal to get prices.
link : https://theunderminejournal.com/#us/garona/item/23445
what I want to get is the Current Price to display in my spreadsheet. The site is updated hourly.
=importxml("https://theunderminejournal.com/#us/garona/item/23445","/html/body/div[2]/div[2]/div[11]/div[1]/table/tr[3]/td/span")
=importxml("https://theunderminejournal.com/#us/garona/item/23445","//*[#id="item-page"]/div[1]/table/tr[3]/td/span")
I have tried these but to no avail. Any help would be appreciated. I have got this to work with other sites like retail sites and such, just not this one.
Thanks!
Google Sheets does not support web scraping of JavaScript controlled elements. you can easily check it by disabling JS for a given site and only what's left visible can be scraped. in your case, that's nothing, unfortunately:
JavaScript generated sites can't be fetched by import functions of sheets.
Moreover, I tried fetching the current price using script via UrlFetchApp but it seems that I can't make it work.
I tried finding an alternative site but was not able to find one. If you can provide a similar/alternative site that can show a data similar to the one from TUJ, I might be able to give you a working script but import functions from sheet will definitely not work.
This question already has an answer here:
Guidance on webscraping using Google Sheets [duplicate]
(1 answer)
Closed 1 year ago.
I am looking to pull the price data for each of the SKUs I have listed in a google sheet.
My initial try was the use a formula inside of the sheet.
=importxml("SKU Search URL", "//p/span[#data-qa='grid-cell-price']/text()")
This does not work, since the content is dynamic.
What would be the easiest method of obtaining this data?
Google Sheets does not support web scraping of JavaScript controlled elements. you can easily check it by disabling JS for a given site and only what's left visible can be scraped. in your case, that's nothing, unfortunately:
This question already has an answer here:
How to access “Saved Queries” programmatically?
(1 answer)
Closed 3 years ago.
I have a query saved on BigQuery and I wish to find a way to run it directly on RStudio without copy-pasting it. Is there a way where I can use the link of the saved query to tun it in RStudio?
For now, Saved queries is only accessible through BigQuery UI. There is no way to access it by any API or by code. You can follow feature request at issuetracker https://issuetracker.google.com/issues/111961970
Hope it helps.
This question already has answers here:
Scraping data to Google Sheets from a website that uses JavaScript
(2 answers)
Closed last month.
I'm trying to get some data from a web page using import XML but it tells me "N/A Imported content is empty"
I've tried with a different query but is not working.
=IMPORTXML("https://www.shein.com/Floral-Lace-Halter-Teddy-Bodysuit-p-699186-cat-1862.html","//div[#class='opt-size j-sa-select-size j-opt-size']")
I want to be able to parse the different sizes of the clothing, that would be: XS, S, M, L, etc.
Google Sheets does not support web scraping of JavaScript controlled elements. you can easily check it by disabling JS for a given site and only what's left visible can be scraped. in your case, that's nothing, unfortunately:
This question already has answers here:
Highlight a area with Google Maps JavaScript API v3
(2 answers)
Closed 7 years ago.
I want to highlight an area someone's searching for on Google Maps.
For example, something like what this place displays:
How can I do this using map api v3?
It's not possible through the current maps API/places API, unless you actually have these points yourself (from your question, it doesn't seem like it). Google's APIs will only return you a bounds, not a set of coordinates (or even encoded polyline) to be able to draw an outline around a specific area.
This might be usefull!
But again, you'd need to have the points from what I saw.