An experimental parser for Texas-style Campaign Finance Reports
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
data Demo working Nov 9, 2013
doc init Sep 2, 2013
src/parse_tx_cfr Demo working Nov 9, 2013
target/stale Demo working Nov 9, 2013
test/parse_cfr more tests Sep 7, 2013
.gitignore Initial commit Sep 13, 2013
LICENSE Demo working Nov 9, 2013 readme instructions Sep 14, 2013
project.clj Demo working Nov 9, 2013


An experimental parser for PDF Campaign Finance Reports from the Texas Ethics Commission.


Right now you have to edit the source to modify which pages it scrapes. Currently it's hardcoded to scrape all the contributor-containing pages in data/test.pdf (pages 4-46).

$ git clone
$ cd parse-tx-cfr
$ lein run

Running it will give you a list of vectors, each of which contains the information from a contributor cell in data/test.pdf. I don't clean up the output or convert it to a delimited format. As you can see, it's fairly accurate as-is, with the exception of some line breaks and formatting oddities.


There are incompatabilities between GPL and Snowtide's PDFTextStream license (proprietary). This makes it impossible to distribute it as-is. Eventually I will port this to a free PDF parsing library, but until then you're on your own for installing PDFTextStream.

Copyright © 2013 Brandon Robertz GPLv3+ (w/ considering PDFTextStream a system lib) RIP EWOK BATES