Skip to content

Downloads and extracts receipts from a variety of providers and gives you a folder of PDF files ready for printing or whatever.

License

Notifications You must be signed in to change notification settings

moeffju/receipt-extractor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

receipt-extractor

fetch.rb: Downloads receipts from IMAP servers and intelligently saves them into PDF files.

extract.rb: Parses PDF files and extracts supplier, invoice date and amount into a tab-separated output.

Configuration

Edit fetch.rb to add your IMAP server data and the appropriate filters and extractors for your use case. Edit extract.rb to add the additional parsers for the generated PDFs as needed.

Usage

Run fetch.rb. It will save PDF files to the current working directory, named with timestamp, sender and message ID.

Then, run extract.rb passing the PDF files as args and redirecting the output to a .tsv file.

Open the .tsv file with Excel and copy-paste to your heart’s content.

About

Downloads and extracts receipts from a variety of providers and gives you a folder of PDF files ready for printing or whatever.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages