[WikiEN-l] extracting protein target infobox information via page export

Andrew Gray andrew.gray at dunelm.org.uk
Wed Jan 19 15:26:46 UTC 2011


On 19 January 2011 15:18, Rajarshi Guha <rajarshi.guha at 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=&exportnowrap=
http://en.wikipedia.org/w/api.php?action=query&titles=Calreticulin&export=&exportnowrap=

are both equivalent.

-- 
- Andrew Gray
  andrew.gray at dunelm.org.uk



More information about the WikiEN-l mailing list