I'm trying to get a value embedded in a website page using '=IMPORTXML' in Google Sheets:
Example value I'm trying to capture
Here's what I tried so far: I copied the full xpath in Google Chrome and entered the following in Google Sheets:
=IMPORTXML("https://magiceden.io/marketplace/portals","//html/body/div[2]/div[2]/div[3]/div[2]/div[2]/div[1]/div[1]/div[2]/div[2]/div[2]/div[1]/div[2]/span/text")
But it returns 'N/A' in my google sheets cell, saying it's empty.
I tried to do the same on the Solanafloor website and that did work. Example:
=IMPORTXML("https://solanafloor.com/nft/portals","//html/body/div/div/div/div[1]/main/div/div[4]/div[3]/div[1]/ul/li[1]/strong/span/text()")
In both cases I used 'copy full xpath' in Google Chrome and used that exact value for the formula. Any ideas?