XpathOnURL for Linkedin Company Page returning blank cells

I try to get XPathOnURL working for followers on a public Company Page on LinkedIn.
I had a formula that worked for a few years, but it stopped working, so I am trying to find a new version.

Unfortunately, I had no luck with the samples I found in this forum.

The old formula I used was:
=XPathOnUrl("https://www.linkedin.com/company/mediafiler", "//*[@id='biz-follow-mod']/div/div/p/a/strong")

I tried these new ones but they keep returning blank cells. No error messages only blank cells:

=XPathOnUrl("https://www.linkedin.com/company/mediafiler", "//[@id='biz-follow-mod']/div/div/p")
=XPathOnUrl("https://www.linkedin.com/company/mediafiler","//
[@id='biz-follow-mod']/div/div/div/p/*[@class='followers-count']")

Any ideas? Help would be very much appreciated!

Try this regex:

=RegexpFindOnUrl(URL,"""followerCount"":(\d*)",1)

1 Like