I understand that it is possible to use a Python expression formula to batch download XYZ tiles within QGIS. I also understand that that expression/formula has been written and has previously appeared here in answer to a question. However, I have been unable to find it.

How can I do this?

Browse other questions tagged or ask your own question.