Hi Binaris,

I think you can use category_graph.py script [1] to find out the category path.

Best
xqt

[1] https://doc.wikimedia.org/pywikibot/master/scripts/categories.html#category-graph-script

Am 03.04.2024 um 17:17 schrieb Bináris <wikiposta@gmail.com>:


Hi,

given a category c and a page p, p is listed in c.articles(recurse=True)
But is shouldn't... And I don't know the depth of it.
Is there a simple way to find a path between them, and guess, why is the page in the category?
(I spent 10 minutes with manual trying, total fail.)

--
Bináris
_______________________________________________
pywikibot mailing list -- pywikibot@lists.wikimedia.org
Public archives at https://lists.wikimedia.org/hyperkitty/list/pywikibot@lists.wikimedia.org/message/S63JZSM6HUGJLUEPNORIJQR6LUDJW3YV/
To unsubscribe send an email to pywikibot-leave@lists.wikimedia.org