Tool to export Steam purchase history to CSV or JSON, and also display some stats along the way.
- Log into your Steam account in a browser
- Navigate to [https://store.steampowered.com/account/history]
- Scroll to the bottom of the page and click the "LOAD MORE TRANSACTIONS" button
- Repeat until all transactions are loaded (no more button displayed)
- Save the HTML web page as a file (like
C:\Temp\NeryK's account.htm
) - Run the tool
python -m steampurch -i "C:\Temp\NeryK's account.htm" -c "C:\Temp\neryk_transactions.csv"
- Import CSV in your favorite spreadsheet software
- Enjoy happy graph fun times
- Output JSON instead of CSV (or both)
python -m steampurch -i "C:\Temp\NeryK's account.htm" -j "C:\Temp\neryk_transactions.json"
- Write stats to stdout
python -m steampurch -i "C:\Temp\NeryK's account.htm" -s
- Available stats yearly spent amount, total spent amount
- Transactions that use both wallet and another payment mean may not be handled properly
- Prepaid card are considered a spent amount when they are redeemed
- Wallet spending is ignored, since it is in fact money already spent