I'm trying to extract (where possible) or generate (where breadcrumbs not available) breadcrumbs from url in spreadsheets. So for pages that have it, I'm just using a IMPORTXML (refined by case)
=TEXTJOIN(" > ", 1,importxml(A66,"//*[@id='breadcrumbs']/div/div/ul",1))
But I'm trying to see if there's a fast way to generate them from given page where not available (like this one, but where the navigation path might not be visible in link either) . I was looking into this similar question. Is there a way to use it in google aps script?