Dalkandura Arachchige Gunaratna wrote:
Thank you and that makes sense. I'm trying to
change the code now to
support redirects since it gets a different JSONObject (key is not
categories for redirects) for redirects.
***one other question, for the title "Nervous system", I need to query
into 3 layers. for the firs time it gives me 3 categories,
1. Nervous system
Then I need to query each of these 3 categories to get their sub
categories. but in a loop when I parse again Nervous system, it gives me
the same three results but I want to get the results as I traverse in
Wikipedia manually. In Wikipedia, when I search "Nervous system", it
gives me these three results first and then when I click on the category
Nervous system (in the initial result of categories), it gives me "Organ
systems" and "Mind". How can I do this in the code with MediaWiki API?
Categories [[Nervous system]] is in.
Categories [[Category:Nervous system]] is in (aka. parent categories).