Hi, I want to know how I can get all the tiles in a disambiguation page. I use the following API call to get the category list for a word in Wikipedia and if it returns a disambiguation page, I want to get the list of titles listed in the disambiguation page and search for each title using the following command. For example, the word I search here is "Settlement" which means several meanings.
http://en.wikipedia.org/w/api.php?action=query&prop=categories&title...
if anybody knows how to do this, let me know. thank you.
Kalpa Gunaratna
On Mon, Aug 8, 2011 at 7:50 PM, Dalkandura Arachchige Gunaratna gunaratna.2@wright.edu wrote:
Hi, I want to know how I can get all the tiles in a disambiguation page.
The software doesn't really know what a disambig page is or how it's laid out, so the closest you can get is requesting a list of all links on the disambig page, using:
http://en.wikipedia.org/w/api.php?action=query&titles=Name_of_a_disambig...
To get the links on a disambig page and get the categories for those titles in one request, use:
http://en.wikipedia.org/w/api.php?action=query&titles=Name_of_a_disambig...
Roan Kattouw (Catrope)
It works. Thank you.
Kalpa Gunaratna
----- Original Message ----- From: Roan Kattouw roan.kattouw@gmail.com Date: Monday, August 8, 2011 2:04 pm Subject: Re: [Mediawiki-api] get titles of a disambiguation page To: MediaWiki API announcements & discussion mediawiki-api@lists.wikimedia.org
On Mon, Aug 8, 2011 at 7:50 PM, Dalkandura Arachchige Gunaratna gunaratna.2@wright.edu wrote:
Hi, I want to know how I can get all the tiles in a
disambiguation page. The software doesn't really know what a disambig page is or how it's laid out, so the closest you can get is requesting a list of all links on the disambig page, using:
http://en.wikipedia.org/w/api.php?action=query&titles=Name_of_a_disambig...
To get the links on a disambig page and get the categories for those titles in one request, use:
http://en.wikipedia.org/w/api.php?action=query&titles=Name_of_a_disambig...
Roan Kattouw (Catrope)
Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
mediawiki-api@lists.wikimedia.org