title: How to strip headers/footers from Project Gutenberg texts?
body: <p>I've tried various methods to strip the license from Project Gutenberg texts, for use as a corpus for a language learning project, but I can't seem to come up with an unsupervised, reliable approach.  The best heuristic I've come up with so far is stripping the first twenty eight lines and the last 398, which worked for a large number of the texts.  Any suggestions as to ways I can automatically strip the text (which is very similar for lots of the texts, but with slight differences in each case, and a few different templates, as well), as well as suggestions for how to verify that the text has been stripped accurately, would be very useful.</p>