Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option for WIKICATEGORYMEMBERS to list all subcategories too #8

Open
Samwalton9 opened this issue Aug 3, 2016 · 5 comments
Open

Comments

@Samwalton9
Copy link

Samwalton9 commented Aug 3, 2016

It would be super useful to be able to list all category and subcategory pages. Since different language pages are common on meta wiki we would need to list the category members for every subcategory of The Wikipedia Library (e.g. Category:The Wikipedia Library/de) individually. If WIKICATEGORYMEMBERS could optionally list all pages in the specified category and its sub categories in one step that would be great.

@tomayac
Copy link
Owner

tomayac commented Aug 3, 2016

I considered this, but it simply doesn't scale in the general case. It is dangerously easy to shoot yourself (and the Wikimedia Foundation) in the foot by unconsciously firing thousands of requests with one innocent-looking formula. Unless you have a smart solution to this issue?!

@Samwalton9
Copy link
Author

One solution could be allowing WIKICATEGORYMEMBERS to take a list of categories to list the articles for. This would allow the user to use WIKISUBCATEGORIES to list out the subcats, which could then be fed into WIKICATEGORYMEMBERS if the user sees that there aren't an absurd number. Would that help?

@tomayac
Copy link
Owner

tomayac commented Aug 10, 2016

We probably agree that there should be some sort of recursion depth limit. I am on vacation at the moment, but happy to get technical feedback from the API admins on the best way to do this.

@tomayac tomayac self-assigned this Sep 26, 2016
@Samwalton9
Copy link
Author

Hi - just remembered about this. Did you manage to make any progress? :)

@tomayac
Copy link
Owner

tomayac commented Feb 3, 2017

Sorry, no progress yet, but I haven't forgotten about it.

@tomayac tomayac removed their assignment Oct 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants