Answer the question
In order to leave comments, you need to log in
How to crawl a Sitemap?
Hello. I do a service for myself.
For the first time, when adding a site, I collect the following data on it: title, description, page load speed, etc. keeping everything in BD.
I get speed with these links
https://www.googleapis.com/pagespeedonline/v2/runPagespeed?strategy=desktop&url=site.com
https://www.googleapis.com/pagespeedonline/v2/runPagespeed?strategy=mobile&url=site.com
https://www.googleapis.com/pagespeedonline/v2/runPagespeed?strategy=desktop&url=site.com
https://www.googleapis.com/pagespeedonline/v2/runPagespeed?strategy=mobile&url=site.com
Answer the question
In order to leave comments, you need to log in
Who will tell you how best to scan large sites?Just don't laugh, but it's better to do this in C and / or in several threads, if we talk about the need for maximum performance of such processes.
and how will the operation of such a script affect the server?You can control the maximum load of the process on the server (machine), for example, with the help of (re)nice .
Question 2: How else can I get page loading speed?The exact same result as GPS (Google Page Speed) - no way. Your result, no matter how you get it, will differ from the GPS result for a number of reasons (I think they are pretty obvious to voice them). But in general, the process is quite simple in its logic:
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question