How to get websites logos with google sheets IMPORTXML with //img/#src? - google-sheets

I have a google sheet list with different companies and their website addresses. I am building a small app in glide and would like to include the companies logo. In my google sheet I want to have a URL to the logo image. Is there any way how I can filter out the other images, that I am getting with //img/#src? Please help me find the function for =importxml(E3,"//img/#src") -->get only logo.
Thank you for your help
my table

For the first one, you can use
=IMPORTXML("https://www.xolo.io/zz-en","//link[#type='image/png']/#href")
No possibility for https://1office.co/ (the website uses javascript)
Third one
=importxml("https://www.firma.de/","//meta[#property='og:image']/#content")
you have to retrieve the specific xpath for each url

Related

Google Spreadsheet API Developer

I am no longer trying "to embed Google Maps so when I click on it opens Google Maps with 100 meters radius." I understand "Google Maps is not a part of the core services.
I am now trying to use a Work Around without Google Maps and am now asking for help with the "Work Around"....
I want to be able to use the method from this YouTube video to create the Search option another Google support team rep(Vienna) referred me to. In the video he did a search for shoes, shirts and dresses to find his customers. I want to do a search by zip and/or city and state to find mine...."Google Sheets - Search, QUERY function"===https://www.youtube.com/watch?v=VSGKO5gx974
I need help with this part as well with the Google Sheets function list. Which Google Sheet function or a combination of functions will allow me to do the 150-200 meters radius search within the "Google Sheets"? I am not tech savvy and need help to determine which ones can be used. Here are some of the functions that appear to be able to be used from what I think FLATTEN, FREQUENCY, LINEST, MAP, MMULT MDETERM , SUMX2PY2, DAVERAGE, DCOUNTA, DSTDEV, DVAR, DELTA, FILTER, SORT, SORTN, UNIQUE, QUERY, ISFORMULA, CELL, ect.... ===https://support.google.com/docs/table/25273?hl=en#query=
The Viennes also sent a link. https://developers.google.com/maps/documentation/routes_preferred/support#:~:text=Before%20you%20call%2C%20make%20sure,1%2D877%2D355%2D5787
As I was looking over the page, I came across the link to theMarketplace.
I was wondering which one of those databases could be used in the function to accomadate what I am trying to accomplish. Is it the Zip Code Tabulation Area, Geolocation API, CARTO, Roads, API, Routes API. Maps JavaScriprt API, ect....
With those three things listed above, I am sure something can come close to doing a radius/range search in Google Sheets.
If any, at least by the City and/or State search.
I am in need of a Developer, can you suggest one?

VBA macro to create a list of all URLs connected with one google sheet

Not sure if anyone knows how to do this but could really do with your help,
I have a google sheet that contains 4 or 5 sheets at the moment and that number will increase as we go on,
I have a fantastic piece of code I found that can pull in the data from a Google Sheet Tab using the URL,
however it only does the one tab,
so I was wondering if anyone knows a way to create a list of all the tabs in a google sheets URL's
here is a URL to the first sheet
https://docs.google.com/spreadsheets/d/1G-2PJHClHmI0hrYsV1QxNDzyXG0Kze0IIxzb_n3n6oQ/edit#gid=303111374
so I need a way to go to this then import the URLs for all other sheets
please help if you can, any ideas would be great, also if you have a better way to pull all sheets into excel I'm all ears.

Get Google Reviews with IMPORTXML function in G Sheets

I'm trying to import to a Google Sheet the number of reviews and average rating of a certain venue on Google Maps.
Taking as an example this page:
https://www.google.com/maps?cid=8807257593070771217
From Chrome's inspector, the XPath for the average should be:
//*[#id='pane']/div/div[1]/div/div/div[1]/div[3]/div[2]/div/div[1]/span[1]/span/span
However it always returns empty.
Any idea why?
PS - This URL redirects to another, but that shouldn't be the problem as the same thing happens with Facebook and it returns the correct values.
Thanks in advance for any help
Per the comments here, you can't. If you want to scrape Google Maps, use Google's officially supported way to do that: their APIs.
You're probably interested in the Place Details, in particular.
If you have access to a businesses Google My Business page you can leverage the API to pull in reviews that way: https://developers.google.com/my-business/content/review-data
Otherwise, https://serpapi.com can scrape Google reviews for you.

Create UI on top of google sheet

I have a google sheet with some data, say Roll Number and Name. Now I want to create UI for the google sheet with an text box name and have option search
When I enter name and click search, I should get all the records with that particular name.
How do I achieve this in google sheet? Any addons or scripts available?
Google Drive has a full featured API so you can consume its data from any application, in nearly any technology (Python, Javascript, PHP etc) using its Rest API.
I'm pretty sure no addons available from market to do it, so the solution would be to implement it yourself.

How to literally take Google Maps page and put it into website for my products?

I am new to Ruby on Rails and need to know how I would get Google Maps map to show inside of my website as if a user was using Google similar to when sites use Google Search.
I want the scenario to play out like this:
Users create products and on the form is a partial which displays the Google Maps so they can look for the address, confirm it and then save it (by link or screenshot) with a specific Product. How can i make this happen?
You need the Google Maps Javascript API, plus some Javascript know how.

Resources