Some code to process Wikipedia pages