recently, I am doing a web crawler, first grab the list page, then get the url, of all the content pages of the list page, and then call the url loop of all the list pages to the crawling method, which leads to the uncontrollable crawling order. I want to know how to control the crawling order.
for example: page An is being crawled, page An is finished, page B is being crawled, page B is finished. In this order.
grab function: