John Piasetzki's Blog

My Thoughts

Download Your Github Receipt With Cron

Github is awesome! I love using it for sharing code.

Github’s receipt system is less awesome. I try to keep all my receipts (never know when your taxes will get audited).

My workflow used to be:

  1. Get emailed receipt
  2. Download and file in proper folder
  3. Archive email.

After three months of that I wrote a python script that downloads the pdfs for me.[1] Now I just run it on cron and auto archive the emails.

Ideally Github would make a private repo for ever account that would get update with your receipt. A monthly pull and you would be up to date.

[1] I use John Wiegley’s excellent ledger so I use my ledger branch to also print an update the ledger file.