Learn about more WebPageTest API Integrations in our docs
The WebPageTest Crawler, crawls through the website to fetch URLs and then runs test on them. Level and URL limit can be given.
Requires node, npm.
Once you have cloned the project run npm install
to install dependencies. requires node v22.13.0 minumum
npm install
There are 3 main config values : -
- wpt_api_key - Check here the API documentation
- level - integer value, specifies maximum depth the crawler should crawl.
- limit - integer value, specifies maximum limit of URLs need to tested. Note : - Crawling stops if either of them reaches a limit.
You can add your initial set of URLs to the startingUrls.txt file by seperating them using a comma.
npm run build & node build/index.js -k [YOUR_API_KEY] -f ./startingUrls.txt
Booyah, once the crawl-testing is complete you'll have a report.csv file which includes performance details of the URLs crawled.