What I need to do is pull the keyword density of the main content of a page. Using https://www.theguardian.com/world/2021/aug/02/covid-travel-minister-defends-plan-amber-watchlist-england as an example, I need the density of the main copy.
I can get either of these things into Excel with the below, but I need to find a way to combine them:
- =XPathOnUrl("https://www.theguardian.com/world/2021/aug/02/covid-travel-minister-defends-plan-amber-watchlist-england","//*[@id='maincontent']")
- =KeywordDensity("https://www.theguardian.com/world/2021/aug/02/covid-travel-minister-defends-plan-amber-watchlist-england")
Any help is much appreciated