I want to use mwclient to explore categories. I can get the list of all categories for a page https://mwclient.readthedocs.io/en/master/reference/page.html#mwclient.page.Page.categories, but I don't see how to limit that to just non-hidden cats. At the API level https://www.mediawiki.org/wiki/API:Categories, this equates to clshow=!hidden, but how to represent that at the mwclient layer?
Meta question: is this the right place to ask mwclient questions? :-)
I think the best place would be to open an issue on github: https://github.com/mwclient/mwclient/issues
Le dim. 24 juin 2018 à 23:00, Roy Smith roy@panix.com a écrit :
I want to use mwclient to explore categories. I can get the list of all categories for a page https://mwclient.readthedocs.io/en/master/reference/page.html#mwclient.page.Page.categories, but I don't see how to limit that to just non-hidden cats. At the API level https://www.mediawiki.org/wiki/API:Categories, this equates to clshow=!hidden, but how to represent that at the mwclient layer?
Meta question: is this the right place to ask mwclient questions? :-) _______________________________________________ Wikimedia Cloud Services mailing list Cloud@lists.wikimedia.org (formerly labs-l@lists.wikimedia.org) https://lists.wikimedia.org/mailman/listinfo/cloud
Ouch, seems like the show parameter was actually not supported. I just added it: https://github.com/mwclient/mwclient/commit/30cb1328ac4239dd856f8b23a43e8b08...
And created a gitter room to answer the meta question: https://gitter.im/mwclient/mwclient
Dan Michael
On Tue, Jun 26, 2018 at 10:20 AM Pierre-Selim pierre-selim@huard.info wrote:
I think the best place would be to open an issue on github: https://github.com/mwclient/mwclient/issues
Le dim. 24 juin 2018 à 23:00, Roy Smith roy@panix.com a écrit :
I want to use mwclient to explore categories. I can get the list of all categories for a page https://mwclient.readthedocs.io/en/master/reference/page.html#mwclient.page.Page.categories, but I don't see how to limit that to just non-hidden cats. At the API level https://www.mediawiki.org/wiki/API:Categories, this equates to clshow=!hidden, but how to represent that at the mwclient layer?
Meta question: is this the right place to ask mwclient questions? :-) _______________________________________________ Wikimedia Cloud Services mailing list Cloud@lists.wikimedia.org (formerly labs-l@lists.wikimedia.org) https://lists.wikimedia.org/mailman/listinfo/cloud
-- Pierre-Selim
Wikimedia Cloud Services mailing list Cloud@lists.wikimedia.org (formerly labs-l@lists.wikimedia.org) https://lists.wikimedia.org/mailman/listinfo/cloud