Met with CC
Summary:
Confirmed procedure first outlined here and detailed below.
1) Get ID of all (main) pages whose title begins with The Devonshire Manuscript
2) For each page, get the revisions
3) Save resulting XML to file
4) Process resulting XML with XSLT to produce XML output suitable for CircleMagic.
Extend that same procedure to Talk pages whose title begins with The Devonshire Manuscript
Likely plan: implement in php, use curl to get files, Mar
Later we'll worry about aggregating raw XML and/or XML for CircleMagic.
Details:
Query to get the ID of all pages whose title begins with The Devonshire Manuscript
returns
<api>
<query>
<allpages>
<p pageid="259759" ns="0" title="The Devonshire Manuscript" />
<p pageid="264110" ns="0" title="The Devonshire Manuscript/94r-96r" />
<p pageid="264051" ns="0" title="The Devonshire Manuscript/A my herte a what eilith the" />
...
<p pageid="262594" ns="0" title="The Devonshire Manuscript/ys yt possyble" />
<p pageid="262460" ns="0" title="The Devonshire Manuscript /Take hede be tyme leste ye be spyede" />
</allpages>
</query>
</api>
for each page, run query specifying the fields ids, flags, timestamp, user, userid, size, comment
to get revisions for that page, something like this example for page 259759:
http://en.wikibooks.org/w/api.php?action=query&prop=revisions&format=xml&rvprop=ids%7Cflags%7Ctimestamp%7Cuser%7Cuserid%7Csize%7Ccomment&rvlimit=10&pageids=259759
returns
<?xml version="1.0"?>
<api>
<query>
<pages>
<page pageid="259759" ns="0" title="The Devonshire Manuscript">
<revisions>
<rev revid="2271272" parentid="2266406" minor="" user="Cultures4" userid="505038" timestamp="2012-02-21T23:42:20Z" size="29114" comment="Added colon." />
<rev revid="2266406" parentid="2266057" user="Cultures92" userid="493905" timestamp="2012-02-16T17:14:06Z" size="29113" comment="added a space for the encoded material introduction" />
<rev revid="2266057" parentid="2266056" user="Cultures92" userid="493905" timestamp="2012-02-15T23:06:34Z" size="29028" comment="" />
...
<rev revid="2208495" parentid="2208491" minor="" user="Cultures92" userid="493905" timestamp="2011-11-09T19:49:51Z" size="523" comment="inserted line breaks; added heading;added an introduction page" />
<rev revid="2208491" parentid="2208489" minor="" user="Cultures92" userid="493905" timestamp="2011-11-09T19:45:55Z" size="393" comment="" />
<rev revid="2208489" parentid="0" user="Cultures92" userid="493905" timestamp="2011-11-09T19:43:18Z" size="403" comment="inserted the TOC and status (0%)" />
</revisions>
</page>
</pages>
</query>
<limits revisions="500" />
</api>
Apply same procedure to all the page pages in the TALK namespace whose title begins with The Devonshire Manuscript
Query to get list of talk pages for devonshire manuscript
returns
<?xml version="1.0"?>
<api>
<limits allpages="500" />
<query>
<allpages>
<p pageid="262865" ns="1" title="Talk:The Devonshire Manuscript" />
<p pageid="263839" ns="1" title="Talk:The Devonshire Manuscript/Biographies" />
<p pageid="263769" ns="1" title="Talk:The Devonshire Manuscript/My lute awake performe the last labor" />
<p pageid="260967" ns="1" title="Talk:The Devonshire Manuscript/To wette yowr Iye withouten teare" />
<p pageid="263424" ns="1" title="Talk:The Devonshire Manuscript/Wyly no dought ye be a wry" />
<p pageid="262996" ns="1" title="Talk:The Devonshire Manuscript/Yff reason govern fantasye" />
<p pageid="264109" ns="1" title="Talk:The Devonshire Manuscript/ffortyn ells" />
<p pageid="262992" ns="1" title="Talk:The Devonshire Manuscript/what nedythe lyff when I requyer" />
</allpages>
</query>
</api>
query to get revisions to one of those pages e.g. page 262865
returns
<?xml version="1.0"?>
<api>
<query>
<pages>
<page pageid="262865" ns="1" title="Talk:The Devonshire Manuscript">
<revisions>
<rev revid="2246975" parentid="2246343" user="Cultures92" userid="493905" timestamp="2012-01-05T20:29:59Z" size="2380" comment="" />
<rev revid="2246343" parentid="2246341" minor="" user="Panic2k4" userid="2865" timestamp="2012-01-03T22:41:02Z" size="1780" comment="" />
<rev revid="2246341" parentid="2246336" user="Panic2k4" userid="2865" timestamp="2012-01-03T22:30:47Z" size="1742" comment="" />
<rev revid="2246336" parentid="2235673" user="Cultures92" userid="493905" timestamp="2012-01-03T22:11:20Z" size="1179" comment="should we link or import? which is best Wikibooks practice?" />
<rev revid="2235673" parentid="2235654" user="Jomegat" userid="12605" timestamp="2011-12-13T20:28:51Z" size="610" comment="Import from WP" />
<rev revid="2235654" parentid="0" user="Cultures92" userid="493905" timestamp="2011-12-13T20:11:23Z" size="230" comment="Created page with "Shall we discuss requesting an import of our contributor biographies from Wikipedia? ~~~~"" />
</revisions>
</page>
</pages>
</query>
</api>