Two approaches, and they suit different people.
The fast route. Codes will hand you the scrolls outright, at the cost of the game having been played properly.
Run the speed stages repeatedly and the scrolls come with time. Take Pakkun with you — his ability makes those maps considerably more forgiving, and the collection is genuinely satisfying when you do it yourself.
If you have never finished the game, do it once legitimately before reaching for codes. The scrolls mean more afterwards.