Yes, I thought also about that. But I feel that it might be easier to understand the code if we explicitely "dublicate" some lines but only the ones which are relevant. In this way you can see (better?) the difference between the two possible scraping flows. (Might be also connected to the next comment)