Custom bash scraper for pulling down and manipulating documents