<a href="https://github.com/TomasHubelbauer/scrape-github-invoices/tree/master" rel="nofollow">https://github.com/TomasHubelbauer/scrape-github-invoices/tr...</a><p>Hey HN, I was frustrated with downloading GitHub invoices for my org by hand so I figured I'd use the GitHub API to download them instead.<p>…not so fast! The GitHub API doesn't allow one to do that. So I decided to stretch my Puppeteer muscle as I've been enjoying it more and more since I first looked into it and scrape the licenses from my own account.<p>The only thing I have to do now is fire up this script and enter the 2FA code. The rest is taken care of. Please note that this probably won't work headless as headless downloading still seems to be a to-do for Puppeteer: <a href="https://github.com/GoogleChrome/puppeteer/issues/299" rel="nofollow">https://github.com/GoogleChrome/puppeteer/issues/299</a><p>I may have to rename this repository, because I have a feeling name-dropping GitHub in the title will get me asked to change it, but that said, I hope you find this useful if you also like to keep the GitHub invoices locally!