This is a technical question, but I hope it's on topic. The Perseus project contains lots and lots of Latin and Greek texts (and other languages too). I sometimes want to download an entire text from Perseus. There is an XML button at the bottom of every text page which gives you the XML for that page, which is useful; but since texts come "chunked" into books or sections, that button only yields the XML for that book or section. Is there a way to get the entire text?
For example, at the moment I'd like to download the text of Dionysius of Halicarnassus De Demosthene. It's available here, but chunked into chapters. I could fetch the XML for each of the 58 chapters and then paste them together, but that's unappealingly laborious and I suspect there's a quicker way. Is there?
ETA: I'm mostly interested in Greek texts, so I specifically don't want to download an XML in beta code, but a readable Greek-script text.
ETA 2: The entire Perseus corpus can be downloaded here as a single archive. This almost solves the problem, except that the texts are in XML, and the Greek texts are in beta code. It would be nice to have XML-stripped, Greek-script texts.