I’m accessing this website: https://workspace.google.com/marketplace/search/mail%20merge
and I’m trying to identify the value of the data-card-index
attribute of a div that contains the href: ./marketplace/app/mailmeteor/1008170693301
.
Upon research, I saw this IMPORTXML function and I believe this is the solution, but somehow can’t develop the XPATH properly (even with the Copy > Xpath approach).
I saw this and this among others, but it seems you’ll need to have some good level of HTML knowhow to work this out. Anyone who can provide guidance on this please?
Here are some things I tried that didn’t work:
=IMPORTXML("https://workspace.google.com/marketplace/search/mail%20merge","//a/@href")
=IMPORTXML("https://workspace.google.com/marketplace/search/mail%20merge","//div[contains(@href='./marketplace/app/mailmeteor/1008170693301)]//@*'")