Hi,
Is there a way to walk the category tree down or up using http://en.wikipedia.org/w/api.php? I couldn't figure it out.
-Pierre
________________________________ Pierre-Olivier Latour pol@cooliris.com
2010/8/10 Pierre-Olivier Latour pol@cooliris.com:
Hi,
Is there a way to walk the category tree down or up using http://en.wikipedia.org/w/api.php? I couldn't figure it out.
You can use prop=categories to list the categories a given page is in, and list=categorymembers to list the members of a given category. Neither goes multiple levels deep, though.
Roan Kattouw (Catrope)
On Tue, Aug 10, 2010 at 7:05 PM, Roan Kattouw roan.kattouw@gmail.com wrote:
2010/8/10 Pierre-Olivier Latour pol@cooliris.com:
Hi,
Is there a way to walk the category tree down or up using http://en.wikipedia.org/w/api.php? I couldn't figure it out.
You can use prop=categories to list the categories a given page is in, and list=categorymembers to list the members of a given category. Neither goes multiple levels deep, though.
You could try this: http://toolserver.org/~magnus/catscan_rewrite.php
Cheers, Magnus
mediawiki-api@lists.wikimedia.org