I am trying to pull some content with IMPORTXML but my inexperience with XPATH is hindering me. Specifically, I am trying to pull the image and the description of a link preview that appears in linkfork.co. As an example, https://linkfork.co/preview?url=https%3A%2F%2Ftechcrunch.com%2F2021%2F06%2F03%2Fford-owned-spin-shakes-up-scooter-business-with-new-ceo-e-bikes-and-city-strategy%2F returns the following (I want what is in the red circle): example
Chrome's dev tools give the following XPATH for the image: //*[@id="image-container"]/img
This seems to be correct, as far as I can tell, but IMPORTXML returns the error "Imported content is empty"...
I tried a bunch of variations on the formula and all return the same error as long as I am trying to pull content from under "div class = p-4
". Just to be sure I am not totally off-mark, I tried the following function to try and pull every bit of text I could from the page:
=IMPORTXML("https://linkfork.co/preview?url=https%3A%2F%2Ftechcrunch.com%2F2021%2F06%2F03%2Fford-owned-spin-shakes-up-scooter-business-with-new-ceo-e-bikes-and-city-strategy%2F","//*[text()]")
And it it indeed pulled all text from the page except what was under that div. I am just guessing here, but is it because that content is within an editable form? Is it possible to pull data from it? Any help is appreciated.