Automate PageSpeed Insights site testing with Node JS
https://www.arduinobits.comIn this post, Chris shares his Node JS scripts that he uses to automate Web Core Vitals testing for sites using the PageSpeed Insights API.
Essentially, it grabs all of the URLs in your sitemap using sitemap-xml-parser, runs each of these through the Pagespeed Insights API twice, once for each strategy type (Desktop/Mobile), using Axios, and creates an excel workbook of the results using excel4node.