Moved url format string to inner loop

Otherwise ``offset`` is re-initialised to ``0`` every iteration.

Without this, the first 20 posts are re-appended for (n) steps.