loop over pages and write to file
what the hell, might as well host this on github