Export Purchase History from Apple to a csv file
As in described in https://support.apple.com/en-us/118212, one can visit https://reportaproblem.apple.com/ and sign in to see a list of your purchase history under the Apple ID.
This script helps you to export the purchase history to a csv file so that you can search more easily with Excel/Numbers or any other tool and also backup the complete data.
To export the history data, just click the button 'Export to csv'.
Todo: need to auto scroll pagination