On 19 January 2011 15:18, Rajarshi Guha <rajarshi.guha(a)gmail.com> wrote:
Thanks a lot for the pointer. This pretty much solves
my problem -
however, if I want to use the export method via the API, I need to
provide a pageid - how would I programmatically obtain the pageid for
the above page?
The API is not my forte, but looking at
http://en.wikipedia.org/w/api.php
suggests that you can use titles rather than pageids, so that
http://en.wikipedia.org/w/api.php?action=query&pageids=7120&export=…
http://en.wikipedia.org/w/api.php?action=query&titles=Calreticulin&…
are both equivalent.
--
- Andrew Gray
andrew.gray(a)dunelm.org.uk