Programatically find page load times for top-1000

2019-09-10 18:06发布

I have a list of the top 1000 websites. I want to access each website in a browser (render all images, execute all javascript, etc.) and log the load time.

Any suggestions as to the best way of doing this?

I thought about using a headless browser, but not sure if this is the best way.

I know Firebug has load times, but I have 1,000 websites and this process would be very tedious. Also, I have a couple of parameters to tweak so need to go through the 1,000 websites a couple of times.

1条回答
疯言疯语
2楼-- · 2019-09-10 18:44

If I were doing this I'd write a short perl script using WWW::Mechanize::Firefox module to request the pages, logging the page load times to a file.

http://metacpan.org/pod/WWW::Mechanize::Firefox

查看更多
登录 后发表回答