'Importxml Could not fetch url

I've scanned through the previous questions asked here, but I didn't see the light as yet. I am new to this formula And have a little bit of HTML knowledge. This is the website: https://www.thefork.com/search/?cityId=326512&promotionOnly=true

I want a list of all the restaurants names, including the % off, website and address. I tried all sorts of things, nothing worked. So I thought to make it even broader like so: =importxml("https://www.thefork.com/search/?cityId=326512&promotionOnly=true","//h2/*") but nothing (If I'm correct, this says to take everything between<h 2>< /h2> right?

Then I tried to only take the websites with: =importxml("https://www.thefork.com/search/?cityId=326512&promotionOnly=true","//a@href/*") if I'm correct? nothing.....

So now I'm reading up on this formula, but I haven't been able to narrow down my search to what I want to achieve. I first thought that maybe it's not possible because there is an option to login to the website, but then... this page is public and no need to logon. If you have any suggestions, please let me know. Or otherwise how to maybe narrow down my search to find the right info? For the moment I'm reading up on: https://www.w3schools.com/xml/xpath_syntax.asp https://sheetsformarketers.com/google-sheets-formulas/importxml/

Any help/suggestions/where to find/how to ask/ etc... is welcome :slightly_smiling_face:



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source